Custom CSRF Protection Middleware in Node.js.
- Middleware for CSRF token generation & validation.
- HMAC-based token signing for authenticity & integrity.
- Double-submit cookie pattern (stateless validation, no server-side session storage).
- Easy integration with Express.js applications.
- Demo form UI to test CSRF protection.
git clone https://github.com/Kr1shnam00rthi/CSRF-Protection
cd CSRF-Protection
npm install
node server.js