springboot 页面:been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the

been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource

数据源和访问源是否同源的检验。如果static下的页面在文件资源管理器或IDE中启动就会产生,启动springboot Application后应用网址(本地网址、局域网网址、广域网网址均可)访问就不会产生。

发布了388 篇原创文章 · 获赞 105 · 访问量 31万+

猜你喜欢

转载自blog.csdn.net/haoranhaoshi/article/details/105323151