From e9add9d575244123c4d6fc87bf546db3f4a94f69 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Fri, 15 Sep 2017 15:23:52 -0500 Subject: [PATCH] allow aws endpoint --- server/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/index.js b/server/index.js index 6ad1d76..153b3dc 100644 --- a/server/index.js +++ b/server/index.js @@ -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@henry-pump.com:3000']; +let whitelist = ['localhost:3000','http://localhost:8080', 'http://api.henrypump.cloud', 'http://api.henrypump.cloud:3000']; var corsOptions = { origin: function (origin, callback) { if (whitelist.indexOf(origin) !== -1) {