Skip to content

Conversation

@TheodorNEngoy
Copy link

Updates the StreamableHTTP docs snippet + low-level examples to avoid allow_origins=["*"].

  • Uses allow_origin_regex to allow browser clients from ChatGPT origins (https://chatgpt.com, https://chat.openai.com) and localhost dev (http(s)://localhost|127.0.0.1(:port))
  • Keeps the intent of exposing Mcp-Session-Id for browser-based clients
  • Docs/examples only; no runtime behavior changes to the SDK

This reduces the risk of copy/paste wildcard-CORS configs in MCP servers.

@maxisbey
Copy link
Contributor

Thanks! Per our contributing guidelines, please open an issue first and wait for maintainer feedback before submitting PRs.

AI Disclaimer

@maxisbey maxisbey closed this Feb 10, 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.

2 participants