Angular IE-SCRIPT7002:XMLHttpRequest:网络错误0x2ee4

Angular IE-SCRIPT7002:XMLHttpRequest:网络错误0x2ee4,angular,internet-explorer,Angular,Internet Explorer,我正在使用angular并调用http调用。在IE获取脚本7002中,如何解决 代码: let-headersConfig:HttpHeaders=new-HttpHeaders(); headersConfig=headersConfig.set('Content-Type','application/json'); headersConfig=headersConfig.set('授权',''); httpClient.post(URL,JSON.stringify(请求), {header

我正在使用angular并调用http调用。在IE获取脚本7002中,如何解决

代码:

let-headersConfig:HttpHeaders=new-HttpHeaders();
headersConfig=headersConfig.set('Content-Type','application/json');
headersConfig=headersConfig.set('授权','');
httpClient.post(URL,JSON.stringify(请求),
{headers:headersConfig}).map(数据=>{
//成功
}
        let headersConfig: HttpHeaders = new HttpHeaders();
        headersConfig = headersConfig.set('Content-Type', 'application/json');
        headersConfig = headersConfig.set('Authorization', '<auth-token>');

        httpClient.post(URL, JSON.stringify(request),
        { headers: headersConfig }).map(data => {
            //Success
        }