django-cors-headers install code example
Example 1: django-cors-headers
MIDDLEWARE = [
...
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
...
]
Example 2: django-cors-headers
python -m pip install django-cors-headers
Example 3: django-cors-headers
INSTALLED_APPS = [
...
'corsheaders',
...
]