/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-origin-string-strin-b096aaec8082-origin-string-string-origin-string-c-context-string-s0189-c0000.md
origin: `string` | `string[]` | `(origin:string, c:Context) => string...
origin: string | string[] | (origin:string, c:Context) = string Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev...
origin: string | string[] | (origin:string, c:Context) => string
Source evidence: /Sources/raw/honojshono/honojshono.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 *.