diff --git a/http/cors.go b/http/cors.go index eabd6ca7f..2729cde57 100644 --- a/http/cors.go +++ b/http/cors.go @@ -54,6 +54,7 @@ type CORSHandler struct { func (h *CORSHandler) addHeader(w http.ResponseWriter, origin string) { w.Header().Add("Access-Control-Allow-Methods", "POST, GET, OPTIONS, PUT, DELETE") w.Header().Add("Access-Control-Allow-Origin", origin) + w.Header().Add("Access-Control-Allow-Headers", "accept, content-type") } // ServeHTTP adds the correct CORS headers based on the origin and returns immediately