Klement Omeri
Jan 26, 2021

--

Hi Htet, I am sorry for the late response. I guess you have a wrong apiHost at environment file. To understand if this is the case, please check out one of my repos environment.prod file to see how you should set apiHost: https://www.github.com/klement97/kral-kutu-frontend/tree/master/src%2Fenvironments%2Fenvironment.prod.ts

I guess you forgot to start it with an https:// and that is causing the HttpClient to think that this URL belongs to the URL that the frontend itself is being served.

I hope this can help. Thanks!

--

--

Klement Omeri
Klement Omeri

Written by Klement Omeri

Software Engineer. Interested in Python, Django, Pytest, Angular, NgRx and many more. @OmeriKlement — https://www.linkedin.com/in/klement-omeri-929007174/

No responses yet