From 840ab39445708754670a011f224c623ac3e8b413 Mon Sep 17 00:00:00 2001 From: Wei Date: Thu, 10 Mar 2022 13:31:05 -0500 Subject: [PATCH] Remove AWS cookies security fix --- Config/express.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Config/express.js b/Config/express.js index 9bab1bb..1c73753 100644 --- a/Config/express.js +++ b/Config/express.js @@ -26,16 +26,6 @@ module.exports = function(app) { res.header("Access-Control-Allow-Methods", "GET,PUT,POST,DELETE"); res.header("Access-Control-Allow-Headers", "Content-Type, Authorization"); - const cookie = req.cookies.AWSALB; - if (cookie !== undefined) { - res.cookie("AWSALB", cookie, { secure: true, httpOnly: true }); - } - - const cookieCORS = req.cookies.AWSALBCORS; - if (cookieCORS !== undefined) { - res.cookie("AWSALBCORS", cookieCORS, { secure: true, httpOnly: true }); - } - if (next) { next(); }