fix: upload cors does not support wildcard methods
This commit is contained in:
parent
65278cb046
commit
dcab0b46cd
|
@ -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{
|
||||
|
|
Loading…
Reference in New Issue