django-cors-headers

Install from pip:

pip install django-cors-headers

and then add it to your installed apps: settings.py

INSTALLED_APPS = [
    ...
    'corsheaders',
    ...
]


CORS_ORIGIN_ALLOW_ALL = True
CORS_ALLOW_CREDENTIALS = True
  • open/django-cors-headers.txt
  • Last modified: 2024/10/05 06:15
  • by 127.0.0.1