Automatically Set CSRF Token in Postman — Django Tipsby@chillaranand
20,046 reads
20,046 reads

Automatically Set CSRF Token in Postman — Django Tips

by Chillar Anand1mFebruary 28th, 2019
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Django has inbuilt <a href="https://docs.djangoproject.com/en/dev/ref/csrf/">CSRF protection</a> mechanism for requests via unsafe methods to prevent <a href="https://en.wikipedia.org/wiki/Cross-site_request_forgery">Cross Site Request Forgeries</a>. When CSRF protection is enabled on AJAX POST methods, X-CSRFToken header should be sent in the&nbsp;request.
featured image - Automatically Set CSRF Token in Postman — Django Tips
Chillar Anand HackerNoon profile picture
Chillar Anand

Chillar Anand

@chillaranand

L O A D I N G
. . . comments & more!

About Author

Chillar Anand HackerNoon profile picture
Chillar Anand@chillaranand

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite