We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am adding cors as follows:
private val corsPolicy = CorsPolicy( originPolicy = OriginPolicy.AnyOf(systemEnv("ORIGIN_POLICY").split(",")), headers = listOf("*"), methods = Method.entries, ) val corsFilter = Cors(corsPolicy)
This works for matching domains:
< Access-Control-Allow-Origin: my-domain.com < Access-Control-Allow-Headers: * < Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, TRACE, PATCH, PURGE, HEAD
But for not matching domains, it ends up like this:
< Access-Control-Allow-Origin: null < Access-Control-Allow-Headers: * < Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS, TRACE, PATCH, PURGE, HEAD
Wouldn't it be better to completely skip adding these headers?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am adding cors as follows:
This works for matching domains:
But for not matching domains, it ends up like this:
Wouldn't it be better to completely skip adding these headers?
The text was updated successfully, but these errors were encountered: