{% extends "base.html" %} {% block title %}CSRF | django-datastar example{% endblock %} {% block main %}
This form has no handwritten token header and no csrf_exempt.
The packaged bridge reads the masked DOM token emitted by
{% verbatim %}{% datastar_csrf %}{% endverbatim %} and supplies it to Django.
Inspect Datastar-Request: true and X-CSRFToken in
the Network panel.
Awaiting a protected POST.