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?

  • 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:

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

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!