fix: upload cors does not support wildcard methods

This commit is contained in:
Derrick Hammer 2024-03-18 14:13:40 -04:00
parent 65278cb046
commit dcab0b46cd
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 {
return true
},
AllowedMethods: []string{"*"},
AllowedMethods: []string{"POST"},
})
routes := map[string]jape.Handler{