-
-
Notifications
You must be signed in to change notification settings - Fork 472
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
Array - set origin -Not working #294
Comments
Your regex targets example2.com. This will not work when your domain is |
Yes, try to Implement the same way that you are saying by trying to add example.com in the regex /.example.com$/ But still not working Expected: CORS should allow all subdomains (sub1.example.com , sub2.example.com) under the main domain example.com If you have done pls share me piece of code for my understanding |
When using an Array or Regex, the header will appear only when there is an allowed match with the request's https://github.com/expressjs/cors/blob/master/lib/index.js#L58 |
Trying to use Array - set origin to an array of valid origins from subdomains , but it is not working
Example:
The text was updated successfully, but these errors were encountered: