fix(inbound): exempt webhooks from CSRF protection
This commit is contained in:
parent
daabd385c2
commit
8f6c965cd7
|
@ -10,11 +10,13 @@ from django.http import (
|
|||
HttpResponseNotFound,
|
||||
HttpResponseServerError,
|
||||
)
|
||||
from django.views.decorators.csrf import csrf_exempt
|
||||
|
||||
from .inbound import receiver
|
||||
from .signals import incoming_message
|
||||
|
||||
|
||||
@csrf_exempt
|
||||
def handle_inbound(request):
|
||||
if receiver.handle is None:
|
||||
return HttpResponseNotFound()
|
||||
|
|
Loading…
Reference in New Issue