expressjs / csurf

CSRF token middleware
MIT License
2.3k stars 216 forks source link

Added ignoreRoutes in the opts so that we can ignore specific routes #241

Closed sajeerzeji closed 3 years ago

sajeerzeji commented 3 years ago

Added ignoreRoutes in the opts so that we can ignore specific routes, this will be very useful for people using nestjs. Test codes are added to the last.

dougwilson commented 3 years ago

Duplicate of #113