Reverse CORS & Fix Cookie Setting.

This commit is contained in:
Patrick Fic
2021-10-13 14:35:39 -07:00
parent 14309b5c96
commit 0ddf009f8f
7 changed files with 51 additions and 32 deletions

View File

@@ -46,14 +46,15 @@ app.use(bodyParser.json({ limit: "50mb" }));
app.use(bodyParser.urlencoded({ limit: "50mb", extended: true }));
//app.use(enforce.HTTPS({ trustProtoHeader: true }));
app.use(
cors({
credentials: true,
origin: [
"https://test.imex.online",
"http://localhost:3000",
"https://imex.online",
],
})
cors()
// {
// credentials: true,
// origin: [
// "https://test.imex.online",
// "http://localhost:3000",
// "https://imex.online",
// ],
// }
);
//Email Based Paths.