Skip to content

Commit

Permalink
added csrf header in body
Browse files Browse the repository at this point in the history
  • Loading branch information
hemant10yadav committed Dec 2, 2024
1 parent 2a4b9ce commit d4cf965
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion commcare_connect/opportunity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,6 @@ def user_invite_delete(request, org_slug, opp_id, pk):

@org_admin_required
@require_POST
@csrf_exempt
def resend_user_invite(request, org_slug, opp_id, pk):
user_invite = get_object_or_404(UserInvite, id=pk)

Expand Down
2 changes: 1 addition & 1 deletion commcare_connect/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

{% endblock javascript %}
</head>
<body class="bg-light">
<body class="bg-light" hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'>
<div class="mb-1">
<nav class="navbar navbar-expand-lg bg-primary" data-bs-theme="dark">
<div class="container">
Expand Down

0 comments on commit d4cf965

Please sign in to comment.