When adding a krpano in an online ad (iFrame from an ad server, on a website), there is an error that occurs:
"Blocked a frame with origin "http://ad-server.com" from accessing a frame with origin "http://a-website.com". Protocols, domains, and ports must match." - embedpanoJS krpano.js:315
The pano still works in the ad/iframe but the error is in the console. The only thing that fails are plugins that connect to window, like gyro.js.
When traced, the error stacks up as follows:
init
embedhtml5
embedpanoJSkrpano-1.18.5.min.js:289
okrpano-1.18.5.min.js:233:87
dtkrpano-1.18.5.min.js:239:94
embedkrpano-1.18.5.min.js:240
embedpanokrpano-1.18.5.min.js:263
(anonymous function)1.0:110
Note this error may cause ad networks to deny krpanos in ads, PLEASE HELP!