Open Char2sGu opened 3 years ago
https://thenightmarex.github.io/blogs/2020/11/10/debug-vue-projects-without-cors/
Django Development Server: http://localhost:8000Vue Development Server: http://localhost:8080 无需配置跨域,通过 vue-cli配置代理即可实现将发往 localhost:8000/api 的请求转发到 localhost:8080/api。
https://thenightmarex.github.io/blogs/2020/11/10/debug-vue-projects-without-cors/
Django Development Server: http://localhost:8000Vue Development Server: http://localhost:8080 无需配置跨域,通过 vue-cli配置代理即可实现将发往 localhost:8000/api 的请求转发到 localhost:8080/api。