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?