logicp hace 6 años
padre
commit
ce84ba8052
Se han modificado 1 ficheros con 7 adiciones y 7 borrados
  1. 7 7
      src/server/index.js

+ 7 - 7
src/server/index.js

@@ -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}`);