I am trying to reach out to a service in a kubernetes pod, and I provide the correct url, but when the get request reaches to the XMLHttpRequest, the XMLHttpRequest adds a https header which then causes a 404.
Correct URL: file-service.data-services.svc.cluster.local/health
URL that is sent out: https://test.launchpad-leidos.com/file-service.data-services.svc.cluster.local/health
let path = serviceContext + '.data-services.svc.cluster.local';
return new BaseWebTarget(path)
.header('Authorization', `Bearer ${this.token}`)
.path(healthCheckPath)
.request()
.get();
});