79562281

Date: 2025-04-08 14:12:33
Score: 1.5
Natty:
Report link

Adding the below block resolved the issue.

@csrf_exempt  # This decorator exempts CSRF protection for the POST request
    def post(self, request, *args, **kwargs):
        return super().post(request, *args, **kwargs)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Dhawan Solanki