Node.js - csurf invalid csrf token
问题 I'm using the npm module csurf for generating a token. First I get the token from the server, which I then use for the /register request. When I'm reproducing the same steps with postman, it seems to work, but unfortunately not in the application. There it always throws the error message that the token is invalid --- Server side --- csrfProtection.js import csrf from 'csurf'; export default csrf({ cookie: true }); router.js import csrfProtection from './../../config/csrfProtection' router.get