mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-12 07:02:42 -04:00
feat(api): set log level for csrf errors (#59228)
This commit is contained in:
committed by
GitHub
parent
35cbc00b70
commit
f6b57883e1
@@ -22,7 +22,8 @@ const csrf: FastifyPluginCallback = (fastify, _options, done) => {
|
||||
///Ignore all other possible sources of CSRF
|
||||
// tokens since we know we can provide this one
|
||||
getToken: req => req.headers[CSRF_HEADER] as string,
|
||||
cookieOpts: { signed: false, sameSite: 'strict' }
|
||||
cookieOpts: { signed: false, sameSite: 'strict' },
|
||||
logLevel: 'debug'
|
||||
});
|
||||
|
||||
// All routes except signout should add a CSRF token to the response
|
||||
|
||||
Reference in New Issue
Block a user