You are not logged in.

landogar

Beginner

  • "landogar" started this thread

Posts: 1

Occupation: Softwaredeveloper

  • Send private message

1

Wednesday, September 25th 2019, 5:47pm

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!

Posts: 99

Location: Fairfax, CA

Occupation: Code-Slave

  • Send private message

2

Wednesday, September 25th 2019, 9:31pm

Sounds like CORS issues, server side or a referrer policy issue in the iFrame tag