Answers for "cors error django"

5

django-cors-headers

$ pipenv install django-cors-headers
# or
$ pip install django-cors-headers
Posted by: Guest on January-19-2021
0

django how to avoid cors issue

pip install django-cors-headers
#settings.py
INSTALLED_APPS = [
    ...
    'corsheaders',
    ...
]
MIDDLEWARE = [
    ...
    'corsheaders.middleware.CorsMiddleware',
    ...
]
ALLOWED_HOSTS=['*']
CORS_ORIGIN_ALLOW_ALL = True
Posted by: Guest on October-07-2021
0

django cors install

pip install django-cors-headers
Posted by: Guest on August-01-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language