-
Notifications
You must be signed in to change notification settings - Fork 347
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
Enabling CORS for a HTTPRoute #567
Comments
thanks for raising this, I would prefer if this was an |
Hi @Amila-Rukshan my earlier comment was incorrect and the above GEP only drop extension support within |
Sorry @arkodg, I missed this one earlier. I think that a Policy resource is going to be the best fit for now, that is enough implementation to be able to suggest that something like this be implemented upstream in the HTTPRoute object (which I think is not unreasonable, since it's a common request). Its support level will depend on the data plane support, but I can see it ending up as Extended at the very least. |
thanks @youngnick |
As I checked the references in gateway api, there is no I think it should be HTTPRouteFilter which has I created this issue to clear the doubt - kubernetes-sigs/gateway-api#1523 we are still safe since we are going to use a policy for it |
Policy will depend on the outcome of #675. |
What Gateway API extension mechanism works best for this feature may come down to what UX is allowed The Envoy filter is configurable per-Virtualhost or per-Route, so can be configured e.g. for all of say |
Description:
I see two ways to enable CORS in for a HTTPRoute either via a targetRef from a Policy resource or an extensionRef from a custom route filter.
Will envoy-gateway support another CR like below for this purpose?
with this setting, it should be able to configure cors filter in HTTPRoute or Gateway levels.
Any thoughts?
Thanks!
The text was updated successfully, but these errors were encountered: