[英]How can I send csrf_token?
Good afternoon.下午好。 Please help me send csrf_token to the POST function for an authorized user, The error is, when I do user registration: error comes out.请帮我将 csrf_token 发送到授权用户的 POST function,错误是,当我进行用户注册时:出现错误。 Forbidden (CSRF token missing:).禁止(缺少 CSRF 令牌:)。 /data/task. /数据/任务。 The link to the library is below (there is also a demo project for this link).该库的链接如下(该链接还有一个演示项目)。 https://docs.dhtmlx.com/gantt/desktop__howtostart_python.html https://docs.dhtmlx.com/gantt/desktop__howtostart_python.html
If you are working with Django, you need to add the csrf_token to your registration form如果您正在使用 Django,您需要将 csrf_token 添加到您的注册表单
<form method="post">
{% csrf_token %}
// form here
</form>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.