mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(api): csrf over http in development (#39114)
This commit is contained in:
committed by
GitHub
parent
0116afd18b
commit
5a80b83579
@@ -5,7 +5,7 @@ export default function() {
|
||||
cookie: {
|
||||
domain: process.env.COOKIE_DOMAIN || 'localhost',
|
||||
sameSite: 'strict',
|
||||
secure: true
|
||||
secure: process.env.FREECODECAMP_NODE_ENV === 'production'
|
||||
}
|
||||
});
|
||||
return function csrf(req, res, next) {
|
||||
|
||||
Reference in New Issue
Block a user