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
This can be combined with cors.allow.origin.regex to limit allowed domains.
That last sentence is kind of confusing since I don't know, from the context, what are you referring to by "combining with allow origin regex to limit allowed domains". Wouldn't setting the cors.allow.origin.regex property be enough since it would cancel out the * in the Access-Control-Allow-Origin?
Can you clarify this a little? Then I can fork the documentation and fix that part if you want to.
Thanks!
The text was updated successfully, but these errors were encountered:
If cors.allow.origin.regex is set then CORS headers are only sent back for origins that match the regex. So using a star for the Access-Control-Allow-Origin is ok because you aren't relying on the browser to check for valid domains.
Hi, there's a section in the Readme that says:
Note that you can always send back '' instead of echoing the 'Origin' header by including:
This can be combined with cors.allow.origin.regex to limit allowed domains.
That last sentence is kind of confusing since I don't know, from the context, what are you referring to by "combining with allow origin regex to limit allowed domains". Wouldn't setting the
cors.allow.origin.regex
property be enough since it would cancel out the*
in theAccess-Control-Allow-Origin
?Can you clarify this a little? Then I can fork the documentation and fix that part if you want to.
Thanks!
The text was updated successfully, but these errors were encountered: