前後端分離跨域問題

後端解決: 1. 在github中搜索 django cors headers  點擊第一個: 2. 在環境中安裝: pip install django-cors-headers 3. 然後在根據文檔進行配置(settings.py): NSTALLED_APPS = ( ... 'corsheaders', ... ) MIDDLEWARE = [ # Or MIDD
相關文章
相關標籤/搜索