From 0e0d5316b77c7033bb08eca83446467f1a79af02 Mon Sep 17 00:00:00 2001 From: Patrick Fic <> Date: Mon, 18 Oct 2021 07:55:36 -0700 Subject: [PATCH] Undo Quickbooks CORS to resolve prod error. --- server.js | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/server.js b/server.js index b9d14f0b2..257b602aa 100644 --- a/server.js +++ b/server.js @@ -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.