Problem in Safari when using iFrame

  • Hi Klaus
    and members

    I'm developing a panorama viewer with krpano, which is integrated into our customers' websites via an iFrame.This works fine in browsers like Firefox and Chrome, but not in the Safari browser. The viewer works fine when called directly in the Safari browser.

    When the viewer is embedded in an iFrame I get an error message from krpano – “xml parsing failed” and the background is black.

    When I activate the debugging, I get a more detailed message in the developer tools of Safari like “unable to get image data from canvas because the canvas has been tainted by cross-origin data”.

    The reason for the problem is that Safari / Apple has disabled cross-site tracking by default. So if I change this option in the browser settings,
    the viewer loads properly.

    Is there a way to prevent the error without changing the default settings
    of the Safari browser?

    Greetings!

Participate now!

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