摘要: vue项目中,前端与后台进行数据请求或者提交的时候,如果后台没有设置跨域,前端本地调试代码的时候就会报“No 'Access-Control-Allow-Origin' header is present on the requested resource.” 这种跨域错误。 要想本地正常的调试,解决的办法有三个: 一、后台更改header 1 2 header('Access-Con... 阅读全文
posted @ 2018-03-14 11:22 \面朝阳光/ 阅读(11841) 评论(0) 推荐(0) 编辑