fix(api): csrf over http in development (#39114)

pull/39118/head
Oliver Eyton-Williams 2020-06-22 12:27:20 +02:00 committed by GitHub
parent 0116afd18b
commit 5a80b83579
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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) {