fix: need to enable AllowCredentials

This commit is contained in:
Derrick Hammer 2024-03-18 14:19:34 -04:00
parent 6b51e7196c
commit 99d47a4d9c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 3 additions and 2 deletions

View File

@ -183,8 +183,9 @@ func (s *S5API) Routes() (*httprouter.Router, error) {
AllowOriginFunc: func(origin string) bool {
return true
},
AllowedMethods: []string{"POST"},
AllowedHeaders: []string{"Authorization", "Content-Type"},
AllowedMethods: []string{"POST"},
AllowedHeaders: []string{"Authorization", "Content-Type"},
AllowCredentials: true,
})
routes := map[string]jape.Handler{