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
相關文章
相關標籤/搜索