From 294b815afb4c7d3ee1968deb1c88ae054229f013 Mon Sep 17 00:00:00 2001 From: Naren Venkataraman Date: Sun, 15 Nov 2015 17:15:24 -0500 Subject: [PATCH] Add OPTIONS back --- handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler.go b/handler.go index 9512d2e..ae73737 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, GET, HEAD, PATCH, DELETE") + header.Set("Access-Control-Allow-Methods", "POST, GET, HEAD, PATCH, DELETE, OPTIONS") 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")