class ChromeLoginView(View): def get(self, request): return JsonResponse({\'status\': request.user.is_authenticated()}) @method_decorator(csrf_
Django braces provides a CsrfExemptMixin for this.
CsrfExemptMixin
from braces.views import CsrfExemptMixin class ChromeLoginView(CsrfExemptMixin, View): ...