I'm trying to test locally a tour that needs to load a script from an https url, and this is failing.
Is there any workaround?
I'm trying to test locally a tour that needs to load a script from an https url, and this is failing.
Is there any workaround?
krpano 1.22 limited access to external URL's
To load the script, you can use "sameorigin: false" on the HTML page where krpano is included, for example:
<script>
embedpano({xml:"tour.xml", bgcolor:"transparent", target:"pano", html5:"only", mobilescale:1.0, sameorigin:false, passQueryParameters:"startscene,startlookat"});
</script>
More info:
Hi,
are you using HTTPS also locally?
If not, that could be also a Mixed-content problem...
For enabling HTTPS in the krpano Testing Server please see here:
krpano.com - Documentation - krpano Testing Server
Best regards,
Klaus
Thanks Kris and Klaus.
I have not enabled https on my local testing server, but may do so if I continue developing advanced features for krpano.
Alternatively, you can try running a local server with HTTPS using something like localhost over SSL or the mkcert tool. This usually solves mixed content issues.
Don’t have an account yet? Register yourself now and be a part of our community!