You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Access-Control-Request-Headers can be a comma delimited list. when more than one element is in this list, isValidAccessControlRequestHeader in cors_filter.go will fail for even valid requests.
to test:
change cors_filter_test.go:20 to: AllowedHeaders: []string{"X-Custom-Header, X-Additional-Header"},
and line 29 to: httpRequest.Header.Set(HEADER_AccessControlRequestHeaders, "X-Custom-Header, X-Additional-Header")
The text was updated successfully, but these errors were encountered:
Access-Control-Request-Headers can be a comma delimited list. when more than one element is in this list, isValidAccessControlRequestHeader in cors_filter.go will fail for even valid requests.
to test:
change
cors_filter_test.go:20
to:AllowedHeaders: []string{"X-Custom-Header, X-Additional-Header"},
and line
29
to:httpRequest.Header.Set(HEADER_AccessControlRequestHeaders, "X-Custom-Header, X-Additional-Header")
The text was updated successfully, but these errors were encountered: