You need to sign in to do that
Don't have an account?
Abdul Mujeeb Shaik
Mixed Content: The VF page was loaded over HTTPS and requesting insecure script(http)
Hi, I am getting this error in console window.
Mixed Content: The page at 'https://c.ap1.visual.force.com/apex/weatherAndGoogleMap_v1?core.apexpages.devmode.url=1' was loaded over HTTPS, but requested an insecure script 'http://api.openweathermap.org/data/2.5/weather?q=London,uk&callback=test'. This request has been blocked; the content must be served over HTTPS.
how can i overcome this issue.
As the visualforcepage is in https and it is trying to call other url of type http.
so how to solve this issue.
thanks
I am calling
an http
Mixed Content: The page at 'https://c.ap1.visual.force.com/apex/weatherAndGoogleMap_v1?core.apexpages.devmode.url=1' was loaded over HTTPS, but requested an insecure script 'http://api.openweathermap.org/data/2.5/weather?q=London,uk&callback=test'. This request has been blocked; the content must be served over HTTPS.
how can i overcome this issue.
As the visualforcepage is in https and it is trying to call other url of type http.
so how to solve this issue.
thanks
I am calling
an http
So since you're presumably trying to reference a script using the http protocol, while the site itself is running under https, you're seeing this message.
If you can find a way to call the openweathermap api through https, I would switch to using that route. If not, then I would look for another, more secure api for retrieving weather information.
http://www.getthekt.com/?p=462 (http://www.getthekt.com/?p=462" target="_blank)