发布于 4年前

axios 请求带上 cookie

axios 默认浏览器跨域请求不会携带 cookie,设置此项可以带上 cookie

axios.defaults.withCredentials = true
©2020 edoou.com   京ICP备16001874号-3