strict samesite instead of lax

merge-requests/208/head
fatchan 5 years ago
parent 7718a37af0
commit 77085efd87
  1. 2
      models/pages/captcha.js
  2. 2
      server.js

@ -19,7 +19,7 @@ module.exports = async (req, res, next) => {
'maxAge': 5*60*1000, //5 minute cookie 'maxAge': 5*60*1000, //5 minute cookie
'httpOnly': true, 'httpOnly': true,
'secure': true, 'secure': true,
'sameSite': 'lax' 'sameSite': 'strict'
}) })
.redirect(`/captcha/${captchaId}.jpg`); .redirect(`/captcha/${captchaId}.jpg`);

@ -42,7 +42,7 @@ const express = require('express')
cookie: { cookie: {
httpOnly: true, httpOnly: true,
secure: true, secure: true,
sameSite: 'lax', sameSite: 'strict',
} }
})); }));

Loading…
Cancel
Save