XML - Loading error (Security Error). My brain hurts!

  • Using 1.0.8 beta 9 64-bit Windows build.

    I'm setting up KRPano so I can use a single defaultskin.xml for all the images I post. I finally got everything working locally. When I put it all up on the server I now get the ... .xml - Loading error (Security Error)
    http://weaver.net/pano/2010/01/M…ell_Stairs.html

    The XML: http://www.weaver.net/pano/skin/weaverdefault.xml

    The weaverdefault.xml is the defaultskin.xml with a few things added and changed. I had some problems testing locally and made most of the URIs absolute reference to elements on the website. All the code is sitting on the same domain. I have an unlimited domain license I got as a bundle purchase with APP Giga.

    The directory structure on the server:

    Any suggestions?

  • Hi,

    in your html file your are loading the flash embedding javascript
    with an absolute path from "www.weaver.net",
    see:

    Code
    <script type="text/javascript" src="http://www.weaver.net/pano/scripts/swfkrpano.js"></script>

    but the site will be opened with - "weaver.net":
    http://weaver.net/pano/2010/01/M…ell_Stairs.html

    for the flashplayer these are two different domains and this is the problem,
    cross domain access is not possible without crossdomain.xml file,

    e.g. calling the site with the "www." in front of the url will work:
    http://www.weaver.net/pano/2010/01/M…ell_Stairs.html

    as solution I would recommend not to use complete paths,

    if you want an absolute path write it in that way:

    Code
    <script type="text/javascript" src="/pano/scripts/swfkrpano.js"></script>

    best regards,
    Klaus

  • Ah! I finally (DOH!) decided to look at it in Firebug and noticed that there was request for crossdomain.xml
    I'm not a Flash guy at all so that was messing it up.

    For now I need to keep the full absolute paths, this is due to working locally in a different file structure than what I have on the website. I added a crossdomain.xml to the root.

    XML
    <?xml version="1.0" encoding="utf-8"?>
    <!-- http://weaver.net/crossdomain.xml -->
    <!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
    <cross-domain-policy>
      <allow-access-from domain="*.weaver.net" />
    </cross-domain-policy>

    Now I can call from http://www.weaver.net or just weaver.net.

    Works great!

    Thank you!!!

  • Hi;

    Maybe this is a dumb question but, I´m really interested in this software. I all ready daown load the two demo files for mac but the krpanotols do not start, I have a krpano.xml-loading error (10 Error). How do I solve this ?? I follewed the instructions for Flash Global Settings, and nothing, please help.

    Thanks

    Ah! I finally (DOH!) decided to look at it in Firebug and noticed that there was request for crossdomain.xml
    I'm not a Flash guy at all so that was messing it up.

    For now I need to keep the full absolute paths, this is due to working locally in a different file structure than what I have on the website. I added a crossdomain.xml to the root.

    Code

    Now I can call from http://www.weaver.net or just weaver.net.

    Works great!

    Thank you!!!

  • Hi,

    Maybe this is a dumb question but, I´m really interested in this software. I all ready daown load the two demo files for mac but the krpanotols do not start, I have a krpano.xml-loading error (10 Error). How do I solve this ?? I follewed the instructions for Flash Global Settings, and nothing, please help.

    Hi,

    the krpano.swf which is included in the tools package is the just viewer itself,
    when using the droplets it will be automatically copied to the pano folder,
    or used as base swf when building a swf file with embedded images
    (e.g. when using the MAKE PANO (SINGLESWF) droplet),

    when the krpano.swf was opened without any parameter, it will try to load a .xml file
    which is named like the .swf file - in this case - a krpano.xml file, but such file is not
    included in the tools package,

    for using the tools - try to move a panoramic image via drag and drop on one of the
    MAKEPANO (###) droplet files,

    best regards,
    Klaus

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!