Commit 6de40c60 by Иван Кубота

more hэders

parent 6c857434
Pipeline #572 failed with stage
...@@ -63,7 +63,7 @@ router.all('/', function(req, res) { ...@@ -63,7 +63,7 @@ router.all('/', function(req, res) {
}); });
app.use(function(req, res, next) { app.use(function(req, res, next) {
res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS"); res.header("Access-Control-Allow-Methods", "GET, POST, PUT, DELETE, OPTIONS");
res.header("Access-Control-Allow-Headers", "*"); res.header("Access-Control-Allow-Headers", "*, Accept, Content-Type, Content-Length, Accept-Encoding, CUSTOM-ALLOWED-HEADER");
res.header("Access-Control-Allow-Origin","*"); res.header("Access-Control-Allow-Origin","*");
next(); next();
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment