我正在使用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
}