You are here: Home / LBN / Up2date / Core Linux / BastionLinux 36 / python3-django-cors-headers-4.3.1-1.lbn36.noarch

python3-django-cors-headers-4.3.1-1.lbn36.noarch

Package Attributes
RPM  python3-django-cors-headers-4.3.1-1.lbn36.noarch.rpm Architecture  noarch Size  52453 Created  2024/07/01 13:32:02 UTC
Package Specification
Summary django-cors-headers is a Django application for handling the server headers required for Cross-Origin Resource Sharing (CORS).
Group Unspecified
License ZPL
Home Page https://pypi.org/project/django-cors-headers
Description

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 CORS Adding CORS headers allows your resources to be accessed on other domains. It’s important you understand the implications before adding the headers, since you could be unintentionally opening up your site’s private data to others. Some good resources to read on the subject are:

Julia Evans’ introductory comic and educational quiz. Jake Archibald’s How to win at CORS The MDN Article The HTML5 Rocks Tutorial The Wikipedia Page

Requirements Python 3.8 to 3.12 supported. Django 3.2 to 5.0 supported.

Setup Install from pip: python -m pip install django-cors-headers and then add it to your installed apps: INSTALLED_APPS = [ ..., "corsheaders", ..., ] Make sure you add the trailing comma or you might get a ModuleNotFoundError (see this blog post). You will

Requires
rpmlib(PayloadFilesHavePrefix)  
rpmlib(PayloadIsZstd)  
rpmlib(PartialHardlinkSets)  
rpmlib(CompressedFileNames)  
rpmlib(FileDigests)  
Provides
python-django-cors-headers
python3-django-cors-headers
python3.10-django-cors-headers
python3.10dist(django-cors-headers)
python3dist(django-cors-headers)
Obsoletes
python-django-cors-headers

Document Actions