IO-256 Add CORS back for QBO.

This commit is contained in:
Patrick Fic
2021-10-13 15:01:59 -07:00
parent 804c8ad40a
commit 61ad9f0d58

View File

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