header fix

This commit is contained in:
Felix Albrigtsen 2022-03-28 19:46:39 +02:00
parent 01b7566ffc
commit f2e3059394
1 changed files with 1 additions and 1 deletions

View File

@ -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'));