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