diff --git a/app.js b/app.js index 553f11c..c0f6aed 100644 --- a/app.js +++ b/app.js @@ -58,7 +58,7 @@ con.connect(err => { // Global headers -app.get('/*',function(req,res,next){ +app.all('/*',function(req,res,next){ res.header('Access-Control-Allow-Credentials' , true ); next(); });