Undo Quickbooks CORS to resolve prod error.

This commit is contained in:
Patrick Fic
2021-10-18 07:55:36 -07:00
parent 60cb6ee8fb
commit 0e0d5316b7

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()
// cors({
// credentials: true,
// origin: [
// "https://test.imex.online",
// "http://localhost:3000",
// "https://imex.online",
// ],
// })
);
//Email Based Paths.