This request has been blocked; the content must be served over HTTPS

Mixed Content: The page at ‘https://localhost/index.html’ was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint ‘http://my_server/Demonstration/api/ma_liste_publication’. This request has been blocked; the content must be served over HTTPS.

hello all ,
i am getting this error. someone know how to fix it ? the server is not https. and i can not switch it to https

You should upgrade the remote server to HTTPS. What type of server is it?

I had the same problem, and I didn’t have the option to modify the remote server, because it wasn’t up to me.

I added this line in the config.xml and it worked.

config.xml
<content src="http://localhost/index.html" />

I put it under the tag

this solved my problem
<preference name="scheme" value="http" />

1 Like