allow more iterations

This commit is contained in:
Patrick McDonagh
2017-09-15 15:25:14 -05:00
parent e9add9d575
commit 0c0ff9c2e2

View File

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