Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get csrf token in javascript

csrftoken = document.mainform.csrftoken.value;
# Do something with the CSRF token, like add dynamic values, like sha256(csrftoken + "dynamicvalue");
document.mainform.csrftoken.value = csrftoken;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #csrf #token #javascript
ADD COMMENT
Topic
Name
3+2 =