Skip to content
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

feat: add "allow_origins_by_regex" to cors plugin #3763

Closed
spacewander opened this issue Mar 5, 2021 · 1 comment · Fixed by #3839
Closed

feat: add "allow_origins_by_regex" to cors plugin #3763

spacewander opened this issue Mar 5, 2021 · 1 comment · Fixed by #3839
Assignees
Labels
good first issue Good for newcomers

Comments

@spacewander
Copy link
Member

We can use regex to match if the request' Origin header is in the allow list.
People who want to implement it can take a look at: https://github.com/apache/apisix/blob/master/apisix/plugins/uri-blocker.lua

@batman-ezio
Copy link
Contributor

@spacewander can you assign this to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants