fix: update AllowedMethods
This commit is contained in:
parent
85738c1065
commit
79425b76fc
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue