diff --git a/middleware/cors.go b/middleware/cors.go index 7e0319c..6e194cc 100644 --- a/middleware/cors.go +++ b/middleware/cors.go @@ -49,7 +49,7 @@ type OriginValidator func(string) bool var ( defaultCorsOptionStatusCode = http.StatusOK defaultCorsMethods = []string{http.MethodHead, http.MethodGet, http.MethodPost} - defaultCorsHeaders = []string{"Accept", "Accept-Language", "Content-Type", "Content-Language", "Origin"} + defaultCorsHeaders = []string{"Accept", "Accept-Language", "Content-Language", "Origin"} // (WebKit/Safari v9 sends the Origin header by default in AJAX requests). )