chen8275 / xiaoxiao2020.github.io

个人博客
http://www.huuzii.wiki
0 stars 0 forks source link

SpringBoot 优雅解决 ajax 跨域请求 | Joyu_chen #25

Open chen8275 opened 4 years ago

chen8275 commented 4 years ago

http://huuzii.wiki/archives/8c5dcb23.html

今天打开页面报错,地址是有效的,但浏览器会报 “No ‘Access-Control-Allow-Origin’ header is present on the requested resource “ 错误页面如下: 这是由于 ajax 跨域请求造成的