Vue项目报错No 'Access-Control-Allow-Origin'

Access to XMLHttpRequest at 'http://192.168.188.63:5005/api/getMenuListByRoleId' from origin 'http://192.168.188.63:3002' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

拷贝老的Vue项目框架,搭建新的项目报错。没有去登录页面直接访问服务端API,获取权限。

去清除登录缓存即可!!!



© 2016-2024 阿尔佛 aerfo.com | 豫ICP备17044542号 | 豫公网安备 41010602000172