header fix
This commit is contained in:
parent
01b7566ffc
commit
f2e3059394
|
@ -18,7 +18,7 @@ app.use("/api", api);
|
||||||
|
|
||||||
api.use(function(req, res, next) {
|
api.use(function(req, res, next) {
|
||||||
res.header("Access-Control-Allow-Origin", "*");
|
res.header("Access-Control-Allow-Origin", "*");
|
||||||
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
|
// res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
api.use(require('express-log-url'));
|
api.use(require('express-log-url'));
|
||||||
|
|
Loading…
Reference in New Issue