-
Notifications
You must be signed in to change notification settings - Fork 359
New issue
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
CORS Not working as expected #151
Comments
Pretty sure |
I have tried setting the proxy to On start of
When the request is made, this is logs from
And finally these are the configuration environment variables passed on docker launch
|
@aeneasr I triple checked my system, and it looks like our Go server was spitting out CORS headers as well, which explains why I was seeing multiple headers. Sorry for the confusion. |
Describe the bug
With CORS enabled, the proxy does not seem to return the correct headers.
To Reproduce
Steps to reproduce the behavior:
Enable CORS in config
Set CORS_ALLOWED_ORIGINS="*"
Make request to through Oathproxy
Expected behavior
Response from Proxy to return single
Access-Control-Allow-Origin
headerScreenshots
Version:
Additional context
Also, setting the origin explicitly in
CORS_ALLOWED_ORIGINS
results in similar error,Access-Control-Allow-Origin
is set twice in the response.The text was updated successfully, but these errors were encountered: