Patch to add csrftoken
from cookies as X-CSRFToken
header to every superagent's request.
// Just require patch
require('superagent-django-csrf');
npm install superagent-django-csrf
MIT © Shuvalov Anton
Patch to add `csrftoken` from cookies as `X-CSRFToken` header to every superagent's request
JavaScript
Patch to add csrftoken
from cookies as X-CSRFToken
header to every superagent's request.
// Just require patch
require('superagent-django-csrf');
npm install superagent-django-csrf
MIT © Shuvalov Anton