fix: need to whitelist Authorization and Content-Type headers
This commit is contained in:
parent
dcab0b46cd
commit
6b51e7196c
|
@ -184,6 +184,7 @@ func (s *S5API) Routes() (*httprouter.Router, error) {
|
||||||
return true
|
return true
|
||||||
},
|
},
|
||||||
AllowedMethods: []string{"POST"},
|
AllowedMethods: []string{"POST"},
|
||||||
|
AllowedHeaders: []string{"Authorization", "Content-Type"},
|
||||||
})
|
})
|
||||||
|
|
||||||
routes := map[string]jape.Handler{
|
routes := map[string]jape.Handler{
|
||||||
|
|
Loading…
Reference in New Issue