You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, December 10th 2014, 5:25pm

HTML 5 embed with absolut adress

Hello.

I have virtual tour placed on the domain1 (v3d.sk)

I want to to embed the tour on domain2. (zlata-kniha.sk)

In the html code on domain2 I use absolut adress to embed the pano.

It works OK on flash (desktop), but html5 (mobiles) puts FATAL ERROR: domain1/.../tour.xml - loading failed (0)

Is there a way to use cross domain embeding, or you have to have all the files placed on the same domain?


example:

domain1 http://www.v3d.sk (virtual tour is placed here)
domain2 http://www.zlata-kniha.sk

embeding code from http://www.zlata-kniha.sk/index.php
<script src="http://www.v3d.sk/ftp_pano/zlata-kniha/tour.js"></script>
<div id="pano">
<script>embedpano({swf:"http://www.v3d.sk/ftp_pano/zlata-kniha/tour.swf", xml:"http://www.v3d.sk/ftp_pano/zlata-kniha/tour.xml", target:"pano", html5:"auto", passQueryParameters:true});</script>

This post has been edited 1 times, last edit by "matus" (Dec 10th 2014, 8:35pm)


2

Saturday, December 13th 2014, 1:46pm

Hi,

for crossdomain-access in HTML5 it's important that the server serves 'CORS' HTTP headers together with the files.

Please see here at 'details and 'examples':
http://krpano.com/docu/xml/#security.cors

Best regards,
Klaus