Error - Making call to Api from web app in kubernetes

4/28/2019

I am trying to make a call from web app service to web api service of expose type clusterIP in azure kubernetes.

I am getting following error:

polyfills.8bbb231b43165d65d357.js:1 Mixed Content: The page at 'https://xxxx.xxxx.xxx' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://congestion-latest.default/api/galorebridge/test'. This request has been blocked; the content must be served

-- Seenu
angular
asp.net-web-api
azure-kubernetes
docker
kubernetes-ingress

1 Answer

4/30/2019

In your case, there is nothing to do with Kubernetes services, if you are calling your API service internally.

This error means you try load page through HTTPS, but your API endpoint serves content as HTTP you can't do that.

Either you have to change your API URL to HTTPS, or request page via HTTP.

More information on this stack post

-- coolinuxoid
Source: StackOverflow