Skip to content

Commit 8568ae8

Browse files
committed
Add csrf_exempt decorator to callback endpoint
1 parent b197eac commit 8568ae8

File tree

1 file changed

+2
-0
lines changed
  • manage_breast_screening/notifications

1 file changed

+2
-0
lines changed

manage_breast_screening/notifications/views.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from django.contrib.auth.decorators import login_not_required
44
from django.http import JsonResponse
5+
from django.views.decorators.csrf import csrf_exempt
56
from django.views.decorators.http import require_http_methods
67

78
from manage_breast_screening.core.decorators import (
@@ -16,6 +17,7 @@
1617
@require_http_methods(["POST"])
1718
@login_not_required
1819
@basic_auth_exempt
20+
@csrf_exempt
1921
def create_message_status(request):
2022
valid, message = RequestValidator(request).valid()
2123

0 commit comments

Comments
 (0)