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 is actually by design as a security feature. This allows you more control over what you whitelist. You should be able to add *.foo.com and *.*.foo.com.
Describe the bug
When adding an origin with wildcard, it's unclear why domains are not fully matched.
For example, if I add
*.foo.com
I would expect to matchbar.foo.com
but alsomy.bar.foo.com
.Instead, the Regexp used explicitly prevents
.
inside the wildcard: https://github.com/middyjs/middy/blob/main/packages/http-cors/index.js#L70C5-L70C77This is not documented.
Expected behaviour
OR
.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: