-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Sharing CORS config across all virtual_hosts #9924
Comments
cc @dschaller @derekargueta for comment. |
This would be achievable by moving the CORS to per_filter_config, which could then be configured at the global, virtual host, or route level. My initial attempt if anyone wants to revive it, my plate is a little full at the moment: #9324 |
I'm happy to give it a shot but not exactly sure what's going on. What needs to be done? |
I ended up using YAML anchors. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or other activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had activity in the last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted". Thank you for your contributions. |
Short Description
I currently specify the same CORS config under each virtual_host. Is it possible to set the CORS config once and share it across all virtual_hosts?
Extended Description
I'm currently using Envoy to route requests to gRPC services based on the host header.
Here's the relevant part of my config, under
static_resources.listeners[].filter_chains.filters['envoy.http_connection_manager'].config.route_config
:I use the same CORS config for both services -- is it possible to specify that config once somewhere else and have it apply for all virtual_hosts?
The text was updated successfully, but these errors were encountered: