Skip to content

fix(cors): 代理路由跳过网关 CORS,预检交给上游处理 - #41

Merged
239573049 merged 1 commit into
mainfrom
fix/cors-skip-proxied-routes
Nov 3, 2026
Merged

239573049 merged 1 commit into
mainfrom
fix/cors-skip-proxied-routes

Conversation

@239573049

Copy link
Copy Markdown
Owner

GatewayOrigins 只允许网关自身来源,对代理路由生效时,白名单外的来源发预检
会被网关短路返回不带 CORS 头的 204,上游 CORS 策略收不到 OPTIONS。

Motivation and Context

How Has This Been Tested?

Breaking Changes

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation update

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

GatewayOrigins 只允许网关自身来源,对代理路由生效时,白名单外的来源发预检
会被网关短路返回不带 CORS 头的 204,上游 CORS 策略收不到 OPTIONS。

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@239573049
239573049 merged commit c592764 into main Nov 3, 2026
2 checks passed
@239573049
239573049 deleted the fix/cors-skip-proxied-routes branch November 3, 2026 11:51
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.

1 participant