Files
music-tag-web/component/drf/authentication.py
2022-01-28 16:09:30 +08:00

7 lines
180 B
Python

from rest_framework.authentication import SessionAuthentication
class CsrfExemptSessionAuthentication(SessionAuthentication):
def enforce_csrf(self, request):
return