SpringBoot 解决 Web 跨域访问的方法汇总
跨域访问时很多需求,所以 SpringBoot 的跨域解决也是必须的。
Access to XMLHttpRequest at 'http://127.0.0.1:18888/XXXX' from origin 'http://127.0.0.1:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.