function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
João JardineiroJoão Jardineiro 

Load http scrip into vf page

Hello,

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
Tadeas BTadeas B
Hi,
exactly as the error message says, you need to load the script over https:
<script type="text/javascript" src="https://www.openspace.ordnancesurvey.co.uk/osmapapi/openspace.js?key=BA08531D8339984EE0405F0AC86026A9"></script>