.
This commit is contained in:
parent
1cb00c0035
commit
fdb31bb290
@ -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.';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user