一 解决方式:jsonp 只支持get请求不支持post请求 用法:①dataType改为jsonp 但是jsonp 只支持get请求不支持post请求 二 响应头添加Header允许访问 三 httpClient内部转发 四 使用接口网关——nginx、springcloud zuul