Reputation: 570
I have a problem in my angularjs $http request. When I send request to the API it was blocked by the browser like: ERROR IN FIREFOX : Blocked loading mixed active content “http://www.example.com/rest/default/V1/integration/admin/token/”
ERROR IN CHROME: Mixed Content: The page at 'https://www.example.com/load.shtml#/register/pos/docs/2323232221555/new' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.example.com/rest/default/V1/integration/admin/token/'. This request has been blocked; the content must be served over HTTPS.
How can I fixed this problem? Any idea is accepted.
Upvotes: 0
Views: 796
Reputation: 637
Simple: hit your web API endpoints using SSL.
https://www.example.com/rest/default/V1/integration/admin/token/
Upvotes: 0