iview-admin
iview-admin copied to clipboard
项目打包部署跨域
axios.defaults.withCredentials = true 前端已经加了这个了,后台也做处理了,还是跨域,发起的是options请求
在axios 的 headers中,Content-Type设置为 'application/x-www-form-urlencoded' 试试
axios.defaults.withCredentials = true 设置的带cookie过去。java如果设置跨域是用 *设置的。会导致跨域失效的。