Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Montag, 15. April 2013, 23:28

krpano 1.0.8.15 using a sub-domain with HTML5

I have a client who is hosting their files on a subdomain. I'm not positive what their setup is, but the displayed URL is not the subdomain.

Example:
All LINKED files in the html are at http://woodhollow.mack-cali.com
The DISPLAYED URL is http://www.mack-cali.com/5woodhollow

This initially caused the links to my SWF and XML files (which were relative) to break. I updated them to absolute links and this fixed the Flash version (it works, but I do now get some JS errors), but the HTML5 version won't load the absolute links because of what seems to be security measures.

I get the error:

XMLHttpRequest cannot load http://woodhollow.mack-cali.com/tour/tour.xml. Origin http://mack-cali.com is not allowed by Access-Control-Allow-Origin.


Is there anything I can do do address this situation?

2

Montag, 15. April 2013, 23:45

Have you tried giving access to both domains related to Access-Control-Allow-Origin.
I adapt crossdomain.xml to allow access from domains and .htaccess for Access-Control-Allow-Origin

3

Dienstag, 16. April 2013, 01:35

Have you tried giving access to both domains related to Access-Control-Allow-Origin.
I adapt crossdomain.xml to allow access from domains and .htaccess for Access-Control-Allow-Origin
Thanks. I'll pass this along to the client. I don't have access to the server to test. I think I need to add:

Quellcode

1
2
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "http://mack-cali.com"</IfModule>