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
|
return true
|
||||||
},
|
},
|
||||||
AllowedMethods: []string{"GET", "POST", "DELETE"},
|
AllowedMethods: []string{"GET", "POST", "DELETE"},
|
||||||
AllowedHeaders: []string{"Authorization"},
|
AllowedHeaders: []string{"Authorization", "Content-Type"},
|
||||||
})
|
})
|
||||||
|
|
||||||
corsOptionsHandler := func(c jape.Context) {
|
corsOptionsHandler := func(c jape.Context) {
|
||||||
|
|
Loading…
Reference in New Issue