From cad02db518ca3284c8519aa2a9a0332d56de855c Mon Sep 17 00:00:00 2001 From: AV77web Date: Tue, 9 Jun 2026 14:24:03 +0200 Subject: [PATCH] modifiche a cors.ts --- src/config/cors.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/config/cors.ts b/src/config/cors.ts index 31b8ae8..bd7e973 100644 --- a/src/config/cors.ts +++ b/src/config/cors.ts @@ -18,5 +18,11 @@ export const corsMiddleware = cors({ }, credentials: true, 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", + ], });