I am facing problem to call web service which is hosted over HTTP and I am calling web service from https domain.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ %{ENV:BASE}index.php [QSA,L]
i got following error in console when i am trying to calling web.
angular.min.js:93 Mixed Content: The page at 'https://www.<my-domain.com>/#/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://<api url goes here>'. This request has been blocked; the content must be served over HTTPS.
Web service is hosted in aws server which is http only. and my website is hosted to other hosting provider.
You can't fetch insecure (http) resources from a secure (https) origin.
It's called mixed-content and browsers block it for security reasons. (it may allow passive content like images, often with warnings)
What you can do:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With