Sie sind nicht angemeldet.

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>