Add DELETE to acceptable cors methods
This commit is contained in:
parent
67fc563fe2
commit
83e496f040
2
api.go
2
api.go
|
@ -54,7 +54,7 @@ func init() {
|
|||
|
||||
var corsHeaders = map[string]string{
|
||||
"Access-Control-Allow-Headers": "Accept, Authorization, Content-Type, Origin",
|
||||
"Access-Control-Allow-Methods": "GET, OPTIONS",
|
||||
"Access-Control-Allow-Methods": "GET, DELETE, OPTIONS",
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Access-Control-Expose-Headers": "Date",
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue