--- id: django-cors-headers version: "4.9.0" license: MIT license_treatment: permissive maintenance: active --- # django-cors-headers — django-cors-headers is a Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS). License: permissive · Maintenance: active · Popularity: top 1,000 on PyPI ## Install pip install django-cors-headers uv add django-cors-headers poetry add django-cors-headers ## Description =================== django-cors-headers =================== .. image:: https://img.shields.io/github/actions/workflow/status/adamchainz/django-cors-headers/main.yml.svg?branch=main&style=for-the-badge :target: https://github.com/adamchainz/django-cors-headers/actions?workflow=CI .. image:: https://img.shields.io/badge/Coverage-100%25-success?style=for-the-badge :target: https://github.com/adamchainz/django-cors-headers/actions?workflow=CI .. image:: https://img.shields.io/pypi/v/django-cors-headers.svg?style=for-the-badge :target: https://pypi.org/project/django-cors-headers/ .. image:: https://img.shields.io/badge/code%20style-black-000000.svg?style=for-the-badge :target: https://github.com/psf/black .. image:: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white&style=for-the-badge :target: https://github.com/pre-commit/pre-commit :alt: pre-commit A Django App that adds Cross-Origin Resource Sharing (CORS) headers to responses. This allows in-browser requests to your Django application from other origins. ---- **Improve your Django and Git skills** with `my books `__. ---- About... ## AI interpretation — verify before relying A Django middleware that adds Cross-Origin Resource Sharing (CORS) headers to HTTP responses, enabling in-browser requests to your Django application from other origins. Verdict: A production-ready, actively maintained Django middleware for CORS handling with zero known vulnerabilities, minimal dependencies, and permissive licensing. Well-suited for REST APIs and cross-origin scenarios, though requires careful configuration of allowed origins to avoid unintended security exposure. [View on SkillFed](https://skillfed.io/packages/django-cors-headers) · [View on PyPI](https://pypi.org/project/django-cors-headers/)