allow more iterations
This commit is contained in:
@@ -10,7 +10,7 @@ var MongoStore = require('connect-mongo')(session);
|
|||||||
app.use(express.static(__dirname + "/public"));
|
app.use(express.static(__dirname + "/public"));
|
||||||
app.use(morgan('dev'));
|
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 = {
|
var corsOptions = {
|
||||||
origin: function (origin, callback) {
|
origin: function (origin, callback) {
|
||||||
if (whitelist.indexOf(origin) !== -1) {
|
if (whitelist.indexOf(origin) !== -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user