Closed timyounes closed 4 years ago
How does this relate to the ui-router?
I think it is related to the same origin issue
The issue is on the server side, change your api to SSL(the url of the api will change to something like https:......), then also enable CORS on the api while at it, then when you run your angular application just confirm that its url has https(meaning it also using SSL) then that way you'll be sending https requests to a https api, unlike http to https which is where ypur issues lies
I have the same issue going on but it is only one call to my API that seems to be encountering it, all other $http.post (and there are a lot of them) don't have this issue. CORS is already enabled in web.config
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
This does not mean that the issue is invalid. Valid issues may be reopened.
Thank you for your contributions.
Hello,
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.
Thanks, timyounes