Documentation
¶
Overview ¶
Package httpx holds small protocol-level HTTP middlewares shared across the mounted APIs. It deliberately knows nothing about Astrate domains.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORS ¶
CORS returns a middleware that answers preflight requests and stamps Access-Control headers for the allowed origins ("*" allows any). Preflights are answered before any downstream auth runs — browsers send them without an Authorization header. Requests from origins not in the list pass through unstamped: the browser, not the server, enforces the block.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.