From 651ae203041cb617aaca7b166d5b21eed661ea77 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Wed, 6 Jul 2022 23:37:52 +0000 Subject: [PATCH] forgot decorator --- api/tacticalrmm/core/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/tacticalrmm/core/views.py b/api/tacticalrmm/core/views.py index 85d22756..769982e2 100644 --- a/api/tacticalrmm/core/views.py +++ b/api/tacticalrmm/core/views.py @@ -6,6 +6,7 @@ from cryptography import x509 from django.conf import settings from django.http import JsonResponse from django.shortcuts import get_object_or_404 +from django.views.decorators.csrf import csrf_exempt from django.utils import timezone as djangotime from rest_framework.decorators import api_view, permission_classes from rest_framework.exceptions import PermissionDenied @@ -402,6 +403,7 @@ class TwilioSMSTest(APIView): return Response(msg) +@csrf_exempt @monitoring_view def status(request):