fix: add GET and DELETE to cors
This commit is contained in:
parent
3e3f539a8b
commit
8bf4887dae
|
@ -183,7 +183,7 @@ func (s *S5API) Routes() (*httprouter.Router, error) {
|
|||
AllowOriginFunc: func(origin string) bool {
|
||||
return true
|
||||
},
|
||||
AllowedMethods: []string{"POST"},
|
||||
AllowedMethods: []string{"POST", "GET", "DELETE"},
|
||||
AllowedHeaders: []string{"Authorization", "Content-Type"},
|
||||
AllowCredentials: true,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue