繁体   English   中英

在Angularjs中发出https请求

[英]Make https request in Angularjs

在AngularJS中,我正在编写以下代码,$ http.get(url).then ....

正在发送http请求,其中我的服务器配置为https。 使用$ http.get时,我在firebug控制台中看到以下内容。

阻止加载混合的活动内容

在angularjs中发出https请求的方式是什么。 在此主题上找不到任何文档。

编辑我的确切代码是:

$http.get(url).then(function(response) {
                        return response;
                    });

Firebug中显示的请求URL是:GET http:// localhost:8080 / content / help / en / photoshop / product-details.js

试试这个代码。

删除http并以// localhost:8080 / content开头

学分

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM