mybuddy/babybuddy/templates/error/403_csrf_bad_origin.html

30 lines
1.0 KiB
HTML

{% extends 'babybuddy/base.html' %}
{% load i18n widget_tweaks %}
{% block title %}403 {{ title }}{% endblock %}
{% block breadcrumb_nav %}{% endblock %}
{% block page %}
<div class="container mt-2 mt-lg-5">
<div class="row justify-content-md-center">
<div class="col-lg-12 mb-4">
<div>
<h1>403: {{ title }}</h1>
<div class="alert alert-danger" role="alert">
{{ main }} {{ reason }}
</div>
<div class="jumbotron">
<h2>{% trans "How to Fix" %}</h2>
{% blocktrans trimmed with origin=origin %}
Add <samp>{{ origin }}</samp> to the <code>CSRF_TRUSTED_ORIGINS</code>
environment variable. If multiple origins are required separate
with commas.
{% endblocktrans %}
</div>
</div>
</div>
</div>
</div>
{% endblock %}