/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-allowmethods-string-aa80e81729ce-allowmethods-string-origin-string-c-context-string-s0190-c0000.md
allowMethods: `string[]` | `(origin:string, c:Context) => string[]` -...
allowMethods: string[] | (origin:string, c:Context) = string[] Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/...
allowMethods: string[] | (origin:string, c:Context) => string[]
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#allowmethods-string-origin-string-c-context-string
Summary
The value of "Access-Control-Allow-Methods" CORS header. You can also pass a callback function to dynamically determine allowed methods based on the origin. The default is ['GET', 'HEAD', 'PUT', 'POST', 'DELETE', 'PATCH'].
Content
The value of "Access-Control-Allow-Methods" CORS header. You can also pass a callback function to dynamically determine allowed methods based on the origin. The default is ['GET', 'HEAD', 'PUT', 'POST', 'DELETE', 'PATCH'].