-
Notifications
You must be signed in to change notification settings - Fork 140
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
How to specify the list of origins? #212
Comments
You have to specify schema and port if it is not explicit port for that schema. So this do not work with CORS: |
Can someone please provide an example of using regular expressions to specify access to specific domains. I expect the following URL be allowed access for CORS: https://jan.flan.example.com |
@MeesterMan your configuration is correct. The regex detection worked incorrectly for your pattern, and I will update it shortly. |
Fixed and released as 3.0.5 |
@ghost you might want to escape the dot in |
I need to limit access to calls coming from 2 domain names as well as localhost.
I tried following:
And I tried the following:
Receiving exception in both cases:
API works when I allow all CORS:
But I need to limit access to calls coming from 2 domain names as well as localhost.
Thank you for your help.
The text was updated successfully, but these errors were encountered: