You need to sign in to do that
Don't have an account?
João Jardineiro
Load http scrip into vf page
Hello,
I'm trying to use OpenSpace in Salesforce with their given source:
but when I run the vf page gives me the following error:
"Mixed Content: The page at 'https://c.eu5.visual.force.com/apex/TestOSMaps' was loaded over HTTPS, but requested an insecure script 'http://openspace.ordnancesurvey.co.uk/osmapapi/openspace.js?key=BA08531D8339984EE0405F0AC86026A9'. This request has been blocked; the content must be served over HTTPS."
I've tried to change from http to https but it doesn't work.
Is there a way to solve this?
Thanks
I'm trying to use OpenSpace in Salesforce with their given source:
<script type="text/javascript" src="http://www.openspace.ordnancesurvey.co.uk/osmapapi/openspace.js?key=BA08531D8339984EE0405F0AC86026A9"></script>
but when I run the vf page gives me the following error:
"Mixed Content: The page at 'https://c.eu5.visual.force.com/apex/TestOSMaps' was loaded over HTTPS, but requested an insecure script 'http://openspace.ordnancesurvey.co.uk/osmapapi/openspace.js?key=BA08531D8339984EE0405F0AC86026A9'. This request has been blocked; the content must be served over HTTPS."
I've tried to change from http to https but it doesn't work.
Is there a way to solve this?
Thanks
exactly as the error message says, you need to load the script over https:
http://www.getthekt.com/2016/02/28/salesforce-com-this-request-has-been-blocked-the-content-must-be-served-over-https/