Я использую Angular 7
и HttpClient
:
import { HttpClient, HttpHeaders, HttpResponse, HttpRequest, HttpParams } from '@angular/common/http';
...
this.http.get(this.appConfigService.apiUrl + url, {headers: this.getHeaders(), params: urlParams} )
this.appConfigService.apiUrl
содержат: https//xxxx-api.eu-west-3.amazonaws.com:80/int/
Но мойajax call http://localhost:4200/https//xxxx-api.eu-west-3.amazonaws.com:80/int/meeting
Как не использовать http://localhost:4200/
в начале URL?