Skip to content

Patch to add `csrftoken` from cookies as `X-CSRFToken` header to every superagent's request

Notifications You must be signed in to change notification settings

A/superagent-django-csrf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

superagent-django-csrf

Patch to add csrftoken from cookies as X-CSRFToken header to every superagent's request.

Usage

// Just require patch
require('superagent-django-csrf');

Install

npm install superagent-django-csrf

License

MIT © Shuvalov Anton

About

Patch to add `csrftoken` from cookies as `X-CSRFToken` header to every superagent's request

Resources

Stars

Watchers

Forks

Packages

No packages published