/Knowledge/sources/honojs__hono/llms-full/cors-middleware-options-origin-string-string-origin-string-c-context-string--f811d06219f5.md
CORS Middleware: Options > origin: string | string[] | (origin:string...
CORS Middleware: Options origin: string | string[] | (origin:string, c:Context) = string Source evidence: /Sources/honojs hono/provenance.md Canonical citati...
CORS Middleware: Options > origin: string | string[] | (origin:string, c:Context) => string
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#origin-string-string-origin-string-c-context-string
Summary
The value of "Access-Control-Allow-Origin" CORS header. You can also pass the callback function like origin: (origin) => (origin.endsWith('.example.com') ? origin : 'http://example.com'). The default is *.
Content
The value of "Access-Control-Allow-Origin" CORS header. You can also pass the callback function like origin: (origin) => (origin.endsWith('.example.com') ? origin : 'http://example.com'). The default is *.
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#origin-string-string-origin-string-c-context-string",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / CORS Middleware > Options > origin: `string` | `string[]` | `(origin:string, c:Context) => string`",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 189,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "CORS Middleware: Options > origin: string | string[] | (origin:string, c:Context) => string",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}