CORS configuration for routes owned by the Hono application.
Omit cors entirely for the current no-CORS behavior. Pass cors: {} to enable with defaults (reflects the request Origin when present; wildcard origin: "*" requires an explicit opt-in).
cors
cors: {}
Origin
origin: "*"
Optional
common MCP + JSON headers Copy
common MCP + JSON headers
false
true when cors is set; ignored when cors is omitted
true
["GET", "HEAD", "POST", "OPTIONS"]
Allowed Origin(s). Reflect matching Origin header, or "*" when set.
"*"
CORS configuration for routes owned by the Hono application.
Omit
corsentirely for the current no-CORS behavior. Passcors: {}to enable with defaults (reflects the requestOriginwhen present; wildcardorigin: "*"requires an explicit opt-in).