fix: add GET and DELETE to cors

This commit is contained in:
Derrick Hammer 2024-03-21 14:58:26 -04:00
parent 3e3f539a8b
commit 8bf4887dae
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ func (s *S5API) Routes() (*httprouter.Router, error) {
AllowOriginFunc: func(origin string) bool { AllowOriginFunc: func(origin string) bool {
return true return true
}, },
AllowedMethods: []string{"POST"}, AllowedMethods: []string{"POST", "GET", "DELETE"},
AllowedHeaders: []string{"Authorization", "Content-Type"}, AllowedHeaders: []string{"Authorization", "Content-Type"},
AllowCredentials: true, AllowCredentials: true,
}) })