解决跨域请求问题

Access to XMLHttpRequest at 'http://localhost:8080/brand-case/brand/selectAll' from origin 'http://localhost:63342' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

解决跨域请求问题_第1张图片
Chrome:
安装插件:Allow CORS: Access-Control-Allow-origin
解决跨域请求问题_第2张图片
Firefox:
火狐浏览器报错:已拦截跨源请求:同源策略禁止读取位于…的远程资源(CORS 请求不是 http): https://www.jianshu.com/p/f14a732db73c

你可能感兴趣的:(bug,服务器)