Skip to content

Commit

Permalink
removes csrf token from header
Browse files Browse the repository at this point in the history
  • Loading branch information
actlikewill committed Aug 30, 2024
1 parent 34444bd commit 712f7d3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions peachjam/templates/peachjam/saved_document_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,7 @@
data-bs-dismiss="modal"
aria-label="Close"></button>
</div>
<div class="modal-body">
Saving...
{{ form.errors }}
</div>
<div class="modal-body">{% trans 'Saving...' %}</div>
<div class="modal-footer d-flex"></div>
</div>
</div>
Expand Down
1 change: 0 additions & 1 deletion peachjam/templates/peachjam/saved_document_update.html
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@
data-bs-dismiss="modal"
hx-target="#saveDocumentWrapper"
hx-include="#save-document-form"
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'
hx-post="{% url 'saved_document_delete' saved_document.id %}"
hx-confirm="Are you sure you want to unsave this document?">
{% trans 'Unsave' %}
Expand Down

0 comments on commit 712f7d3

Please sign in to comment.