解决跨域Cross origin requests are only supported for protocol schemes的其中一种种办法
跨域问题描述
使用vue通过axios.post方法访问spring boot 接口时,会报跨域错误,错误信息如下:
Access to XMLHttpRequest at ‘http://localhost:9001/security/login’ from origin ‘http://localhost:8080’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control ch
原创
2021-07-04 19:18:04 ·
2153 阅读 ·
0 评论