From 83e496f040401c3eec20f6f000c52c18371dcdcd Mon Sep 17 00:00:00 2001 From: stuart nelson Date: Tue, 17 Jan 2017 10:42:29 +0100 Subject: [PATCH] Add DELETE to acceptable cors methods --- api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api.go b/api.go index 9544f8cc..d81fae0d 100644 --- a/api.go +++ b/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", }