diff --git a/apxtrib.js b/apxtrib.js index e668e06..d8fed4d 100755 --- a/apxtrib.js +++ b/apxtrib.js @@ -161,9 +161,9 @@ const corsOptions = { origin: (origin, callback) => { //before modif only origin == undefined if ( - (infotown.townId == "devfarm" && + (origin == undefined || (infotown.townId == "devfarm" && (origin == undefined || origin == null)) || - origin.indexOf("chrome-extension") > -1 + origin.indexOf("chrome-extension") > -1) ) { callback(null, true); } else {