From 3dce721120e7421d0a5de9de438b016476a16a3c Mon Sep 17 00:00:00 2001 From: justin Date: Tue, 28 Apr 2026 18:29:00 -0500 Subject: [PATCH] Add PUT to CORS allowed methods (needed for intake save) Co-Authored-By: Claude Opus 4.6 (1M context) --- api/src/middleware/cors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/middleware/cors.ts b/api/src/middleware/cors.ts index 6bfbb6d..dedde0c 100644 --- a/api/src/middleware/cors.ts +++ b/api/src/middleware/cors.ts @@ -33,7 +33,7 @@ export const corsMiddleware = cors({ if (isDev && /^http:\/\/192\.168\./.test(origin)) { cb(null, true); return; } cb(new Error(`Origin ${origin} not allowed by CORS`)); }, - methods: ["GET", "POST", "PATCH", "OPTIONS"], + methods: ["GET", "POST", "PUT", "PATCH", "OPTIONS"], allowedHeaders: ["Content-Type", "Authorization"], exposedHeaders: ["RateLimit-Limit", "RateLimit-Remaining", "RateLimit-Reset"], credentials: true,