qrtr-services/core/views.py
2020-09-15 19:07:32 -06:00

7 lines
256 B
Python

from rest_framework.authentication import SessionAuthentication, BasicAuthentication
class CsrfExemptSessionAuthentication(SessionAuthentication):
def enforce_csrf(self, request):
return # To not perform the csrf check previously happening