From 04ff76f0ac153a4be823dc7f5f3bd45839e4cb2b Mon Sep 17 00:00:00 2001 From: Naren Venkataraman Date: Sat, 14 Nov 2015 12:25:26 -0500 Subject: [PATCH] Add GET,DELETE and remove redundant OPTIONS from Access-Control-Allow-Headers --- handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.go b/handler.go index b231289..9512d2e 100644 --- a/handler.go +++ b/handler.go @@ -145,7 +145,7 @@ func (handler *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) { if r.Method == "OPTIONS" { // Preflight request - header.Set("Access-Control-Allow-Methods", "POST, HEAD, PATCH, OPTIONS") + header.Set("Access-Control-Allow-Methods", "POST, GET, HEAD, PATCH, DELETE") header.Set("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Upload-Length, Upload-Offset, Tus-Resumable, Upload-Metadata") header.Set("Access-Control-Max-Age", "86400")