Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

django formdata use csrf token in js

 formData.append('csrfmiddlewaretoken', '{{ csrf_token }}');
'csrfmiddlewaretoken': '{{ csrf_token }}'
 
PREVIOUS NEXT
Tagged: #django #formdata #csrf #token #js
ADD COMMENT
Topic
Name
1+4 =