-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
request help: cors plugins support domain limit #3759
Comments
默认跨域请求是所有域名均可跨域,存在安全问题,建议加上域名正则匹配进行限制 |
Would you like to submit a pr? Thanks! |
We already support this feature. Please read the doc: https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/cors.md
|
if i want allowed *.xxx.cn,What should I write,like "*.xxx.cn" or "xxx.cn"? |
Currently wildcard is not supported. So if you want to match "http://a.xxx.cn" and "https://b.xxx.cn", you need to write "http://a.xxx.cn,https://b.xxx.cn". Note that the scheme is required. |
so,Is there a plan to support wildcard matching? |
I prefer to add regex match. Create an issue as #3763, pull is welcome! |
Issue description
cors plugins support domain limit
Environment
apisix version
): v2.3uname -a
):nginx -V
oropenresty -V
):curl http://127.0.0.1:9090/v1/server_info
to get the info from server-info API):Support Action
The text was updated successfully, but these errors were encountered: