【发布时间】:2016-08-28 01:42:52
【问题描述】:
我在调用通过 HTTP 托管的 Web 服务时遇到问题,我正在从 https 域调用 Web 服务。
网络服务的 htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ %{ENV:BASE}index.php [QSA,L]
当我尝试调用 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 服务托管在仅是 http 的 aws 服务器中。并且我的网站由其他托管服务提供商托管。
【问题讨论】:
-
如果你在这里找不到答案,你可能想试试 webmasters.stackexchange.com
-
好的,谢谢
-
只是为了另一个问题,我想在这里留下另一个问题的答案:stackoverflow.com/a/65358511/104085
标签: angularjs web-services .htaccess http https