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

Monday, April 15th 2013, 11:28pm

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?

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

2

Monday, April 15th 2013, 11:45pm

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

Tuesday, April 16th 2013, 1:35am

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:

Source code

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