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 {
|
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,
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue