So, my app is being served by a simple web server, under "https://localhost:8443/app", while the same web server returns json responses under eg. "https://localhost:8443/api/login".
TLS is set up with a self signed certificate for now.
when I request the app, I get the certificate warning, which I skip, and then I see my login page.
on clicking the login button, the angular application executes
http.post<LoginResponse>('/api/login', body)
which shows up in my browsers network trace as a post request to "http://localhost:8443/api/login".
I cannot find any info on this, only infos on how to handle tls when running the app with angular-cli.
Why does the app default to http, and where do I tell it to use https?