From 61ad9f0d58efeb5450050462bf33601adef7dc28 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Wed, 13 Oct 2021 15:01:59 -0700 Subject: [PATCH] IO-256 Add CORS back for QBO. --- server.js | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/server.js b/server.js index 5cba6fd84..cad3f477c 100644 --- a/server.js +++ b/server.js @@ -46,15 +46,14 @@ 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.