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 {
|
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) {
|
||||||
|
|
Loading…
Reference in New Issue