apxtrib.js
This commit is contained in:
parent
e9c95d5c50
commit
d66bb34981
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user