Vue 环境变量和模式(设置通用baseUrl) 及SpringBoot配置CORS跨域处理
开始一.Vue 环境变量和模式(设置通用baseUrl)二.SpringBoot配置CORS跨域处理
一.Vue 环境变量和模式(设置通用baseUrl)
参考
二.SpringBoot配置CORS跨域处理
这里有一个跨域问题,即 Vue 使用 8080 端口,要访问 8081 端口的服务器,会报错。错误信息如下:
Access to XMLHttpRequest at ‘http://localhost:8081/admin/getLogin’ from origin ‘http://localhost:
原创
2020-07-30 09:53:57 ·
1091 阅读 ·
0 评论