Skip to content

Commit 616d6cf

Browse files
update header check
1 parent db19d84 commit 616d6cf

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

email_config/views.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1+
from django.utils.decorators import method_decorator
2+
from django.views.decorators.csrf import csrf_exempt
13
from rest_framework.permissions import AllowAny
24
from rest_framework.viewsets import ViewSet
35

46
from commons.api.responses import ResponseFactory
57
from .services import BlockedEmailService
68

79

10+
@method_decorator(csrf_exempt, name="dispatch")
811
class BlockedEmailView(ViewSet):
912
permission_classes = [AllowAny]
1013

requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,13 @@ djangorestframework==3.15.2
1717
djangorestframework-simplejwt==5.2.0
1818
filelock==3.16.1
1919
google-auth==2.36.0
20+
gunicorn==22.0.0
2021
identify==2.6.2
2122
idna==3.10
2223
jmespath==1.0.1
2324
nodeenv==1.9.1
2425
oauthlib==3.2.2
26+
packaging==24.2
2527
platformdirs==4.3.6
2628
postgres==4.0
2729
pre_commit==4.0.1
@@ -50,4 +52,3 @@ typing_extensions==4.12.2
5052
tzdata==2024.2
5153
urllib3==2.2.3
5254
virtualenv==20.27.1
53-
gunicorn==22.0.0

0 commit comments

Comments
 (0)