fix: update AllowedHeaders and add Authorization
This commit is contained in:
parent
79425b76fc
commit
30aac94468
|
@ -417,6 +417,7 @@ func (a *AccountAPI) Routes() (*httprouter.Router, error) {
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
AllowedMethods: []string{"GET", "POST", "DELETE"},
|
AllowedMethods: []string{"GET", "POST", "DELETE"},
|
||||||
|
AllowedHeaders: []string{"Authorization"},
|
||||||
})
|
})
|
||||||
|
|
||||||
corsOptionsHandler := func(c jape.Context) {
|
corsOptionsHandler := func(c jape.Context) {
|
||||||
|
|
Loading…
Reference in New Issue