how to allow cors headers in django 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