Closed danilaladner closed 9 months ago
This filter will be used to respond to preflight OPTIONS requests. Any legal OPTIONS requests will be responded directly by the filter and will not be passed to the next filter in the filter chain. Other requests will not be responded directly but if they are accepted cors requests, the filter will add the related headers to the response. In addition, this filter will be bypassed if a direct response or route redirect is configured for the route.
See https://www.envoyproxy.io/docs/envoy/latest/configuration/http/http_filters/cors_filter
Please ensure you request is a legal cors request first. I didn't see your request in your log. And could you check your regex in your cors configuration. I think it should be .*
rather than \*
if you want allow all origins.
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 "no stalebot" 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" or "no stalebot". Thank you for your contributions.
Hello this is our envoy config:
`
But the issue is that CORS filter isn't working. When I enable trace logs i see:
So I see that encode there does not seem to include it:
encode headers called: filter=envoy.filters.http.cors status=0
And obviously in the web browser I see:from origin 'https://my-host.domain.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
and I see no headers Am I doing something wrong, just trying to follow the doc, can someone please help? Thank you.