9 lines
280 B
Python
9 lines
280 B
Python
from rest_framework import permissions
|
|
from rest_framework.authentication import SessionAuthentication
|
|
|
|
|
|
class CsrfExemptSessionAuthentication(SessionAuthentication):
|
|
def enforce_csrf(self, request):
|
|
# To not perform the csrf check previously happening
|
|
return
|