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

时间:2018-04-09 18:00:29

标签: angular internet-explorer

我正在使用angular并调用http调用。在IE中获取SCRIPT7002,如何解决?

代码:

        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
        }

0 个答案:

没有答案