Tweaked WEB_ORIGIN

This commit is contained in:
2022-07-26 11:49:34 +01:00
parent a197073bb1
commit 168bc695b6
5 changed files with 9 additions and 7 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ app.use(express.json());
app.use(cors({
credentials: true,
origin: [`${process.env.WEB_PROTOCOL}://${process.env.WEB_ORIGIN}`],
origin: [`${process.env.WEB_ORIGIN}`],
allowedHeaders: ['Origin', 'X-Requested-With', 'Content-Type', 'Accept', 'Authorization', 'Set-Cookie'],
exposedHeaders: ['Origin', 'X-Requested-With', 'Content-Type', 'Accept', 'Authorization', 'Set-Cookie'],
}));