fix: update AllowedMethods

This commit is contained in:
Derrick Hammer 2024-03-19 15:47:54 -04:00
parent 85738c1065
commit 79425b76fc
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -416,7 +416,7 @@ func (a *AccountAPI) Routes() (*httprouter.Router, error) {
AllowOriginFunc: func(origin string) bool { AllowOriginFunc: func(origin string) bool {
return true return true
}, },
AllowedMethods: []string{"*"}, AllowedMethods: []string{"GET", "POST", "DELETE"},
}) })
corsOptionsHandler := func(c jape.Context) { corsOptionsHandler := func(c jape.Context) {