springboot配置跨域访问

先后端分离项目中要使用ajax访问网络资源,若是访问的不是同域的资源,会报错 Access to XMLHttpRequest at ‘http://localhost:8080/api/test’ from origin ‘http://localhost:8088’ has been blocked by CORS policy: Response to preflight request d
相关文章
相关标签/搜索