摘要: nginx反向代理-解决前端跨域问题 1.定义 跨域是指a页面想获取b页面资源,如果a、b页面的协议、域名、端口、子域名不同,所进行的访问行动都是跨域的,而浏览器为了安全问题一般都限制了跨域访问,也就是不允许跨域请求资源。注意:跨域限制访问,其实是浏览器的限制。理解这一点很重要!!! 2.跨域访问示 阅读全文
posted @ 2019-03-01 17:53 albert_think 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 一、main.js // The Vue build version to load with the `import` command// (runtime-only or standalone) has been set in webpack.base.conf with an alias.im 阅读全文
posted @ 2019-03-01 14:36 albert_think 阅读(144) 评论(0) 推荐(0) 编辑