Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶ added in v0.3.13
CORSMiddleware returns a CORS middleware handler. If allowedOrigins is empty, the returned middleware is a no-op, making CORS effectively disabled. This is the secure default: deployments that do not explicitly configure allowed origins will not accept cross-origin requests.
func ValidationMiddleware ¶
ValidationMiddleware validates all query parameters and request body for unsafe characters
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.