日期】: 2021/10/21
【问题】: 后端已经添加上@CrossOrigin,前端还是显示
Access to XMLHttpRequest at 'localhost:0209/aduicloud/essay/getList' from origin 'http://localhost:1109' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
【原因】: 前端接口写少了http,习惯性在浏览器上直接输入localhost没有http.
【如何发现】: 百思得其解
【如何修复】: 在前端baseUrl上加上http://
【总结】: 百思得其解