---
title: "django-cors-headers 4.0.0 Breaking Changes on PyPI"
description: "What each django-cors-headers release removed, renamed or changed: 6 breaking changes in 1 version on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/django-cors-headers
last_updated: 2026-12-04
---

# django-cors-headers breaking changes

django-cors-headers 4.0.0 (May 12, 2023) is its newest release with breaking changes, 6 of them. The first: Removed corsheaders.conf.Settings.CORS_REPLACE_HTTPS_REFERER. Every breaking API change we have recorded in django-cors-headers on PyPI: 6 breaking changes in 1 version. Below, its one version with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `4.9.0`, released September 18, 2025. 

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

## django-cors-headers 4.0.0 breaking changes

django-cors-headers 4.0.0, released May 12, 2023: 6 breaking changes.

- **Removed** `corsheaders.conf.Settings.CORS_REPLACE_HTTPS_REFERER`  

The setting was removed; use the CSRF_TRUSTED_ORIGINS Django setting instead to make CSRF checks pass for CORS requests. [pypi.org](https://pypi.org/project/django-cors-headers/4.0.0/)
- **Removed** `corsheaders.middleware.CorsMiddleware.process_request`  

CorsMiddleware.process_request was removed in django-cors-headers 4.0.0 [pypi.org](https://pypi.org/project/django-cors-headers/4.0.0/)
- **Removed** `corsheaders.middleware.CorsMiddleware.process_response`  

CorsMiddleware.process_response was removed in django-cors-headers 4.0.0 [pypi.org](https://pypi.org/project/django-cors-headers/4.0.0/)
- **Removed** `corsheaders.middleware.CorsMiddleware.process_view`  

CorsMiddleware.process_view was removed in django-cors-headers 4.0.0 [pypi.org](https://pypi.org/project/django-cors-headers/4.0.0/)
- **Removed** `corsheaders.middleware.CorsPostCsrfMiddleware`  

The middleware was removed; use the CSRF_TRUSTED_ORIGINS Django setting instead to make CSRF checks pass for CORS requests. [pypi.org](https://pypi.org/project/django-cors-headers/4.0.0/)
- **Signature changed** `corsheaders.middleware.CorsMiddleware`  

Was class CorsMiddleware(MiddlewareMixin); now class CorsMiddleware. [pypi.org](https://pypi.org/project/django-cors-headers/4.0.0/)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
