为什么前端无法实现页面跳转啊?
来源:10-31 整体效果演示

慕村7125054
2019-03-10
老师,我把nuxt.config.js里的baseurl改成http://localhost:8080后,按页面的登录按钮无法跳转到首页啊,后台显示auth方法已经返回token了。
写回答
1回答
-
慕村7125054
提问者
2019-03-10
Access to XMLHttpRequest at 'http://localhost:8080/auth?userName=admin&password=admin123' from origin 'http://127.0.0.1:3000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
控制台会报这个错误
032019-04-03
相似问题