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
Providing a comma separated list of URLS to the CORS_ORIGIN env var results in the following error on browser clients:
Access to fetch at '[REDACTED]' from origin '[REDACTED]' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '[REDACTED],[REDACTED]', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
I expected this to work since the documentation states:
Origin URL or list of comma separated list of URLs to whitelist for CORS
Steps to reproduce the bug
Create an Unleash proxy with CORS_ORIGIN containing two domains
Access the proxy via a browser on either domain
Notice the error
Expected behavior
I expected this to work since the documentation states:
Origin URL or list of comma separated list of URLs to whitelist for CORS
Logs, error output, etc.
Access to fetch at '[REDACTED]' from origin '[REDACTED]' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The 'Access-Control-Allow-Origin' header contains multiple values '[REDACTED],[REDACTED]', but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
### Screenshots
_No response_
### Additional context
_No response_
### Unleash version
2.5.0
### Subscription type
Open source
### Hosting type
Self-hosted
### SDK information (language and version)
_No response_
The text was updated successfully, but these errors were encountered:
Describe the bug
Providing a comma separated list of URLS to the CORS_ORIGIN env var results in the following error on browser clients:
I expected this to work since the documentation states:
Steps to reproduce the bug
Expected behavior
I expected this to work since the documentation states:
Logs, error output, etc.
The text was updated successfully, but these errors were encountered: