Fix CORS
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user