How can I send csrf_token?

Viewed 24

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: Forbidden (CSRF token missing.): /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

1 Answers

If you are working with Django, you need to add the csrf_token to your registration form

<form method="post">
   {% csrf_token %}
   // form here
</form>
Related