Update: Add console log origin
This commit is contained in:
parent
f69ed4b3d4
commit
32ceef171e
1 changed files with 1 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ const whitelist = [
|
|||
|
||||
module.exports.corsOptions = {
|
||||
origin: function(origin, callback) {
|
||||
console.log(whitelist, origin);
|
||||
if (whitelist.indexOf(origin) !== -1) {
|
||||
callback(null, true);
|
||||
} else {
|
||||
|
|
|
|||
Reference in a new issue