1

I use Angular 7 and 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 contain : https//xxxx-api.eu-west-3.amazonaws.com:80/int/

But my ajax call is http://localhost:4200/https//xxxx-api.eu-west-3.amazonaws.com:80/int/meeting

How to not use http://localhost:4200/ at the at the beginning of url?

1 Answer 1

1

You are missing a colon in your url after https

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

should be

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

Sign up to request clarification or add additional context in comments.

1 Comment

thank you, I had not seen these two point, I build this url in a service, I will correct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.