default header reset
This commit is contained in:
parent
859d4fa458
commit
aa6ba87f4e
@ -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).
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user