From 79425b76fcb571224e610a2d8851c5addb2ba484 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Tue, 19 Mar 2024 15:47:54 -0400 Subject: [PATCH] fix: update AllowedMethods --- api/account/account.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/account/account.go b/api/account/account.go index 423c815..1892865 100644 --- a/api/account/account.go +++ b/api/account/account.go @@ -416,7 +416,7 @@ func (a *AccountAPI) Routes() (*httprouter.Router, error) { AllowOriginFunc: func(origin string) bool { return true }, - AllowedMethods: []string{"*"}, + AllowedMethods: []string{"GET", "POST", "DELETE"}, }) corsOptionsHandler := func(c jape.Context) {