Add PUT to CORS allowed methods (needed for intake save)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
7b650179e4
commit
3dce721120
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue