modifiche a cors.ts
This commit is contained in:
parent
8f6d7e68d8
commit
cad02db518
1 changed files with 7 additions and 1 deletions
|
|
@ -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",
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue