|
@@ -98,13 +98,13 @@ app.listen(3002)
|
|
|
// res.end();
|
|
|
// });
|
|
|
|
|
|
-app.all('*', function(req, res, next) {
|
|
|
- if (whitelist.indexOf(req.headers.origin) >= 0){
|
|
|
- res.header("Access-Control-Allow-Origin", req.headers.origin);
|
|
|
- }
|
|
|
- res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
|
|
|
- next();
|
|
|
-})
|
|
|
+// app.all('*', function(req, res, next) {
|
|
|
+// if (whitelist.indexOf(req.headers.origin) >= 0){
|
|
|
+// res.header("Access-Control-Allow-Origin", req.headers.origin);
|
|
|
+// }
|
|
|
+// res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
|
|
|
+// next();
|
|
|
+// })
|
|
|
|
|
|
database.sync().then(() => {
|
|
|
console.log(`Listening on port ${3002}`);
|