This commit is contained in:
David Arranz 2019-09-05 16:53:33 +02:00
parent 1cb00c0035
commit fdb31bb290

View File

@ -52,6 +52,8 @@ app.use(cors({
return callback(null, true);
}
console.log('origin =>', origin);
if (allowedOrigins.indexOf(origin) === -1) {
var msg = 'The CORS policy for this site does not ' +
'allow access from the specified Origin.';