From c66f856ccf701a35eff964b36ca0e2c0f6cbab7b Mon Sep 17 00:00:00 2001 From: philc Date: Tue, 27 Feb 2024 12:37:56 +0100 Subject: [PATCH] clean cors --- apxtri.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apxtri.js b/apxtri.js index 9e7a363..5b66d9e 100755 --- a/apxtri.js +++ b/apxtri.js @@ -181,7 +181,6 @@ doms.forEach((d) => { }); const regtxt = `^http.?:\/\/(${originlst})`; let cor = false; -console.log(regtxt); const regorigin = new RegExp(regtxt); app.use((req, res, next) => { if (req.headers.origin == undefined) { @@ -195,7 +194,7 @@ app.use((req, res, next) => { "request origin:", req.headers.origin, "testcors:", - cor, "headers allowed: [", conf.api.exposedHeaders.join(','),"]" + cor, "headers allowed: [", conf.api.exposedHeaders.join(','),"] match with reg:", regtxt ); cors({ origin: cor,