简体   繁体   中英

Make https request in Angularjs

In AngularJS I am writing the following code, $http.get(url).then....

is sending http request where as my server is configured for https. When using $http.get, I see following in the firebug console.

Blocked loading mixed active content

What is the way to issue https requests in angularjs. No documentation could be found on this topic.

EDIT My Exact code is:

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

The URL requested shown in firebug is : GET http://localhost:8080/content/help/en/photoshop/product-details.js

Try this code.

remove http and start as //localhost:8080/content

Credits

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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