Skip to content

Commit 7b67d78

Browse files
Update README.md
Co-authored-by: Marcelo Trylesinski <[email protected]>
1 parent 28aaa02 commit 7b67d78

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,8 +721,8 @@ If you'd like your server to be accessible by browser-based MCP clients, you'll
721721
from starlette.middleware.cors import CORSMiddleware
722722

723723
# Add CORS middleware to your Starlette app
724-
app.add_middleware(
725-
CORSMiddleware,
724+
app = CORSMiddleware(
725+
app,
726726
allow_origins=["*"], # Configure appropriately for production
727727
allow_methods=["GET", "POST", "DELETE"], # MCP streamable HTTP methods
728728
expose_headers=["Mcp-Session-Id"],

0 commit comments

Comments
 (0)