Skip to content

fix cors e2e test#3003

Merged
zirain merged 2 commits intoenvoyproxy:mainfrom
zhaohuabing:fix-cors-e2e
Mar 24, 2024
Merged

fix cors e2e test#3003
zirain merged 2 commits intoenvoyproxy:mainfrom
zhaohuabing:fix-cors-e2e

Conversation

@zhaohuabing
Copy link
Copy Markdown
Member

@zhaohuabing zhaohuabing commented Mar 24, 2024

fix #3001

Check for access-control-expose-headers has been removed because CORS filter sets the access-control-expose-headers header even when the origin is not allowed.

https://github.com/envoyproxy/envoy/blob/b68af06271838f62abf80ac6a2f84b0b5c413d68/source/extensions/filters/http/cors/cors_filter.cc#L196-L198

This is a temporary workaround. It might be an upstream bug introduced by envoyproxy/envoy#33051.

Related upstream issue: envoyproxy/envoy#33086

Signed-off-by: huabing zhao <zhaohuabing@gmail.com>
@zhaohuabing zhaohuabing requested a review from a team as a code owner March 24, 2024 13:37
@zhaohuabing zhaohuabing marked this pull request as draft March 24, 2024 13:40
@codecov
Copy link
Copy Markdown

codecov bot commented Mar 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.63%. Comparing base (0be74ab) to head (432859d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3003   +/-   ##
=======================================
  Coverage   64.63%   64.63%           
=======================================
  Files         121      121           
  Lines       21124    21124           
=======================================
  Hits        13653    13653           
  Misses       6623     6623           
  Partials      848      848           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@zhaohuabing zhaohuabing marked this pull request as ready for review March 24, 2024 13:48
@zirain
Copy link
Copy Markdown
Member

zirain commented Mar 24, 2024

/retest

@zirain zirain merged commit 4afe12b into envoyproxy:main Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flaky: TestE2E/Cors/should_not_contain_cors_headers_when_Origin_not_registered

3 participants