/Knowledge/sources/honojs__hono/llms-full/cors-middleware-options-allowmethods-string-origin-string-c-context-string--6a892698083a.md
CORS Middleware: Options > allowMethods: string[] | (origin:string, c...
CORS Middleware: Options allowMethods: string[] | (origin:string, c:Context) = string[] Source evidence: /Sources/honojs hono/provenance.md Canonical citatio...
CORS Middleware: Options > allowMethods: string[] | (origin:string, c:Context) => string[]
Source evidence: /Sources/honojs__hono/provenance.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'].
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#allowmethods-string-origin-string-c-context-string",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / CORS Middleware > Options > allowMethods: `string[]` | `(origin:string, c:Context) => string[]`",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 190,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "CORS Middleware: Options > allowMethods: string[] | (origin:string, c:Context) => string[]",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}