Merge pull request #606 from prometheus/add-delete-to-cors

Add DELETE to acceptable cors methods
This commit is contained in:
Björn Rabenstein 2017-01-17 11:27:18 +01:00 committed by GitHub
commit 86e33ed8c7
1 changed files with 1 additions and 1 deletions

2
api.go
View File

@ -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",
}