route catch optiong route

This commit is contained in:
2024-11-04 10:40:29 +05:30
parent f4a2452a94
commit c34f5b7d0d
3 changed files with 45 additions and 22 deletions

View File

@@ -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-Language", "Origin"}
defaultCorsHeaders = []string{"Accept", "Accept-Language", "Content-Type", "Content-Language", "Origin"}
// (WebKit/Safari v9 sends the Origin header by default in AJAX requests).
)