default header reset

This commit is contained in:
Ankit Patial 2024-11-04 11:26:10 +05:30
parent 859d4fa458
commit aa6ba87f4e

View File

@ -49,7 +49,7 @@ type OriginValidator func(string) bool
var ( var (
defaultCorsOptionStatusCode = http.StatusOK defaultCorsOptionStatusCode = http.StatusOK
defaultCorsMethods = []string{http.MethodHead, http.MethodGet, http.MethodPost} 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). // (WebKit/Safari v9 sends the Origin header by default in AJAX requests).
) )