fix: update AllowedHeaders and add Authorization

This commit is contained in:
Derrick Hammer 2024-03-19 17:23:35 -04:00
parent 79425b76fc
commit 30aac94468
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

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