From f60cf1ce308788e4268165a1beaf6034a1b5c286 Mon Sep 17 00:00:00 2001 From: walamana Date: Fri, 8 Feb 2019 14:47:20 +0100 Subject: [PATCH] Added Access-Control-Allow-Credentials to every request --- app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); });