pip install django-cors-header
‘corsheaders.middleware.CorsMiddleware‘,
‘corsheaders‘,
CORS_ORIGIN_ALLOW_ALL = True
Django设置跨域
原文:https://www.cnblogs.com/luguochang/p/12182648.html