NodeJS – csrf-sync – ForbiddenError: invalid csrf token
Beginner NodeJS developer here. I’m creating a site in NodeJS using Express and EJS. I’ve just finished a Udemy course and trying it out now myself. DUring the course, I used csrf-sync and it worked fine. However, now that I’m implementing it in my own application, I am getting the “ForbiddenError: invalid csrf token” error when I submit a form. The full error is: