Skip to content

fix(web): continue disallowed cors preflight chain - #7108

Merged
Aias00 merged 5 commits into
apache:masterfrom
dengliming:fix-6720-cors-options-chain
Sep 23, 2026
Merged

Aias00 merged 5 commits into
apache:masterfrom
dengliming:fix-6720-cors-options-chain

Conversation

@dengliming

Copy link
Copy Markdown
Member

Summary

  • only short-circuit CORS preflight requests when the origin is allowed
  • pass disallowed OPTIONS requests through the remaining filter chain
  • add regression tests for allowed and disallowed origins

Testing

  • mvn -q -pl shenyu-web -am -DskipTests=false -Dcheckstyle.skip=false -Dtest=CrossFilterTest -DfailIfNoTests=false test

Fixes #6720

@Aias00 Aias00 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved as PMC (Aias00). Small, well-scoped fix with regression tests; mergeable. Reviewed the diff.

@Aias00
Aias00 merged commit 577c22f into apache:master Sep 23, 2026
39 checks passed
eye-gu pushed a commit to eye-gu/shenyu that referenced this pull request Sep 30, 2026
@Aias00 Aias00 added this to the 2.7.2 milestone Nov 13, 2026
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.

[BUG] CrossFilter short-circuits OPTIONS preflight with 200 OK even for disallowed origins, bypassing the filter chain

2 participants