/superagent-django-csrf

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

Primary LanguageJavaScript

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