modifiche a cors.ts
All checks were successful
Deploy to VPS / build (push) Successful in 16s
Deploy to VPS / deploy (push) Successful in 21s

This commit is contained in:
AV77web 2026-06-09 14:24:03 +02:00
parent 8f6d7e68d8
commit cad02db518

View file

@ -18,5 +18,11 @@ export const corsMiddleware = cors({
}, },
credentials: true, credentials: true,
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"], methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
allowedHeaders: ["Content-Type", "Authorization", "Cookie", "X-Requested-With"], allowedHeaders: [
"Content-Type",
"Authorization",
"Cookie",
"X-Requested-With",
"X-Auth-Return-Redirect",
],
}); });