django-cors-headers add allow header code example
Example 1: django-cors-headers
$ pipenv install django-cors-headers
# or
$ pip install django-cors-headers
Example 2: django-cors-headers
MIDDLEWARE = [
...
'corsheaders.middleware.CorsMiddleware',
'django.middleware.common.CommonMiddleware',
...
]