This commit is contained in:
Patrick McDonagh
2018-03-08 16:22:17 -06:00
parent 808dabe985
commit e6aa4b76d0

View File

@@ -10,14 +10,14 @@ var MongoStore = require('connect-mongo')(session);
app.use(express.static(__dirname + "/public"));
app.use(morgan('dev'));
let whitelist = [
'localhost:3000',
'http://localhost:3000',
let whitelist = ['localhost:3000',
'localhost:8080',
'http://localhost:8080',
'reports.henrypump.cloud',
'http://reports.henrypump.cloud'
];
'http://api.henrypump.cloud',
'http://api.henrypump.cloud:3000',
'api.henrypump.cloud',
'http://reports.henrypump.cloud',
'reports.henrypump.cloud'];
// let whitelist = ['api.henrypump.cloud', 'http://api.henrypump.cloud', 'http://api.henrypump.cloud:3000', ];
var corsOptions = {