GitPedia

Django spa cookie auth

Four different approaches on how to authenticate Single-Page Applications (SPAs) with session-based authentication using Django.

From duplxey·Updated January 29, 2026·View on GitHub·

[https://testdriven.io/blog/django-spa-auth/](https://testdriven.io/blog/django-spa-auth/) The project is written primarily in Python, distributed under the MIT License license, first published in 2020. Key topics include: authentication, cookie, cookie-authentication, django, djangorestframework.

Django SPA Cookie Auth

https://testdriven.io/blog/django-spa-auth/

  1. Django + React SPA served up via Django Templates
  2. Django + React SPA (same origin)
  3. Django + DRF + React SPA (same origin)
  4. Django + React SPA (cross origin)

Contributors

Showing top 3 contributors by commit count.

View all contributors on GitHub →

This article is auto-generated from duplxey/django-spa-cookie-auth via the GitHub API.Last fetched: 6/27/2026