apxtrib.js

This commit is contained in:
philc 2023-11-20 12:43:55 +01:00
parent e9c95d5c50
commit d66bb34981

View File

@ -161,9 +161,9 @@ const corsOptions = {
origin: (origin, callback) => { origin: (origin, callback) => {
//before modif only origin == undefined //before modif only origin == undefined
if ( if (
(infotown.townId == "devfarm" && (origin == undefined || (infotown.townId == "devfarm" &&
(origin == undefined || origin == null)) || (origin == undefined || origin == null)) ||
origin.indexOf("chrome-extension") > -1 origin.indexOf("chrome-extension") > -1)
) { ) {
callback(null, true); callback(null, true);
} else { } else {