A:Ajax提交数据是,携带的CSRF在data中:
"POST" action="/csrf.html"> {% csrf_token %} "user" type="text" name="user" /> "submit" value="提交"/> "submitForm();">Ajax提交
B:Ajax提交数据是,携带的CSRF在请求头中:
"POST" action="/csrf.html"> {% csrf_token %} "user" type="text" name="user" /> "submit" value="提交"/> "submitForm();">Ajax提交