why are cors headers not added in django sometimes code example
Example 1: django-cors-headers
$ pipenv install django-cors-headers
# or
$ pip install django-cors-headers
Example 2: django-cors-headers
INSTALLED_APPS = [
...
'corsheaders',
...
]