expressjs / csurf

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

Allow custom function of ignore checking #180

Open SOF3 opened 5 years ago

SOF3 commented 5 years ago

I want to ignore send a token if a GET parameter is present and redirect user to another site (GitHub OAuth login), so even other methods like path filtering wouldn't work.