Added Access-Control-Allow-Credentials to every request
This commit is contained in:
parent
47f0713687
commit
f60cf1ce30
2
app.js
2
app.js
@ -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();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user