datasette/datasette/templates/logout.html
Simon Willison 0b639a8122
Replace token-based CSRF with Sec-Fetch-Site header protection (#2689)
- New CSRF protection middleware inspired by Go 1.25 and research by Filippo Valsorda - https://words.filippo.io/csrf/ - this replaces the old CSRF token based protection.
- Removes all instances of `<input type="hidden" name="csrftoken" value="{{ csrftoken() }}">` in the templates - they are no longer needed.
- Removes the `def skip_csrf(datasette, scope):` plugin hook defined in `datasette/hookspecs.py` and its documentation and tests.
- Updated CSRF protection documentation to describe the new approach.
- Upgrade guide now describes the CSRF change.
2026-04-14 17:11:36 -07:00

17 lines
333 B
HTML

{% extends "base.html" %}
{% block title %}Log out{% endblock %}
{% block content %}
<h1>Log out</h1>
<p>You are logged in as <strong>{{ display_actor(actor) }}</strong></p>
<form class="core" action="{{ urls.logout() }}" method="post">
<div>
<input type="submit" value="Log out">
</div>
</form>
{% endblock %}