From aa6ba87f4eade0ef89b7f5ba687cae7e312c43cf Mon Sep 17 00:00:00 2001 From: Ankit Patial Date: Mon, 4 Nov 2024 11:26:10 +0530 Subject: [PATCH] default header reset --- middleware/cors.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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). )