-
-
God of Avalon
-
How to Deploy Django
-
Vue+Django CORS and CSRF
Backend (Django) Part
Docs: django-cors-headers, django core settings
According to django-cors-headers, use:
python -m pip install django-cors-headers
to install
django-cors-headers
and add it to installed apps insettings.py
INSTALLED_APPS = [ ..., "corsheaders", ..., ]
Add a middleware class to listen in on responses. The order of middlewares is important:
Read moreCorsMiddleware
should be placed …