Skip to content

Commit

Permalink
Remove AWS cookies security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
David-YuWei committed Mar 10, 2022
1 parent ca76de2 commit 840ab39
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions Config/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 840ab39

Please sign in to comment.