fix: update AllowedHeaders and add Content-Type

This commit is contained in:
Derrick Hammer 2024-03-19 18:25:20 -04:00
parent 30aac94468
commit f9c834752f
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -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) {