Documentation
¶
Overview ¶
Package corshttp is the CORS layer of the platform's listener: the headers a browser-based MCP client needs, the preflight answer, and the one path family that bypasses it, the webhook receiver (#1870). Its own package so internal/httpserver, at its size budget, holds the assembly alone.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Gated ¶ added in v1.152.6
Gated is Middleware with the public map paths served only to the sites admit allows.
func Middleware ¶
Middleware adds CORS headers for browser-based MCP clients, and serves the public map paths to every site. It is the layer the in-process readers (the tile worker, the PDF export, a script's self-call) go through; the listener uses Gated.
Types ¶
Click to show internal directories.
Click to hide internal directories.