fix: need to whitelist Authorization and Content-Type headers

This commit is contained in:
Derrick Hammer 2024-03-18 14:16:04 -04:00
parent dcab0b46cd
commit 6b51e7196c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -184,6 +184,7 @@ func (s *S5API) Routes() (*httprouter.Router, error) {
return true
},
AllowedMethods: []string{"POST"},
AllowedHeaders: []string{"Authorization", "Content-Type"},
})
routes := map[string]jape.Handler{