Angular 角度httpclient不使用绝对url

Angular 角度httpclient不使用绝对url,angular,angular-httpclient,Angular,Angular Httpclient,我使用Angular 7和HttpClient: import { HttpClient, HttpHeaders, HttpResponse, HttpRequest, HttpParams } from '@angular/common/http'; this.appConfigService.apiUrl包含:https//xxxx-api.eu-west-3.amazonaws.com:80/int/ 但是我的ajax调用是http://localhost:4200/https//x

我使用
Angular 7
HttpClient

import { HttpClient, HttpHeaders, HttpResponse, HttpRequest, HttpParams } from '@angular/common/http';

this.appConfigService.apiUrl
包含:
https//xxxx-api.eu-west-3.amazonaws.com:80/int/

但是我的ajax调用是
http://localhost:4200/https//xxxx-api.eu-west-3.amazonaws.com:80/int/meeting


如何不使用
http://localhost:4200/
在url开头?

您的url在https
之后缺少一个冒号

https//xxxx api.eu-west-3.amazonaws.com:80/int/

应该是


https://xxxx-api.eu-west-3.amazonaws.com:80/int/

谢谢,我没有看到这两点,我在一个服务中建立了这个url,我会更正的。
this.http.get(this.appConfigService.apiUrl + url, {headers: this.getHeaders(),  params: urlParams} )