open:django-cors-headers

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
  • 마지막으로 수정됨: 2020/06/02 09:25
  • 저자 127.0.0.1