Undo Quickbooks CORS to resolve prod error.
This commit is contained in:
17
server.js
17
server.js
@@ -46,14 +46,15 @@ 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,
|
// cors({
|
||||||
origin: [
|
// credentials: true,
|
||||||
"https://test.imex.online",
|
// origin: [
|
||||||
"http://localhost:3000",
|
// "https://test.imex.online",
|
||||||
"https://imex.online",
|
// "http://localhost:3000",
|
||||||
],
|
// "https://imex.online",
|
||||||
})
|
// ],
|
||||||
|
// })
|
||||||
);
|
);
|
||||||
|
|
||||||
//Email Based Paths.
|
//Email Based Paths.
|
||||||
|
|||||||
Reference in New Issue
Block a user