Answer the question
In order to leave comments, you need to log in
Is it correct to write the CSRF token in a cookie?
I am currently using the 'csurf' library inside the Nest+Next bundle.
There is an example in the documentation
app.use(cookieParser())
app.use(csrf({ cookie: true }))
set-cookie: _csrf=tT_oDy39L-XZkVESH0LAA140; Path=/
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question