Added Access-Control-Allow-Credentials to every request

This commit is contained in:
walamana 2019-02-08 14:47:20 +01:00
parent 47f0713687
commit f60cf1ce30

2
app.js
View File

@ -58,7 +58,7 @@ con.connect(err => {
// Global headers // Global headers
app.get('/*',function(req,res,next){ app.all('/*',function(req,res,next){
res.header('Access-Control-Allow-Credentials' , true ); res.header('Access-Control-Allow-Credentials' , true );
next(); next();
}); });