Skip to content

Kr1shnam00rth1/CSRF-Protection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSRF Protection

Custom CSRF Protection Middleware in Node.js.

Features

  • 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.

Installation

git clone https://github.com/Kr1shnam00rthi/CSRF-Protection
cd CSRF-Protection
npm install
node server.js

About

Custom CSRF Protection Middleware in Node.js

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors