You are not logged in.


Thursday, March 17th 2016, 11:47pm

krpano in ads - iFrame cross-domain block

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 "" from accessing a frame with origin "". 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:
(anonymous function)1.0:110

Note this error may cause ad networks to deny krpanos in ads, PLEASE HELP!

This post has been edited 1 times, last edit by "BOX" (Mar 18th 2016, 9:30pm)


Friday, March 18th 2016, 9:29pm

Can't seem to shake this error, but I'm able to get gyro.js working on Doubleclick ads!

Basically I added iFrame message events to pass alpha, beta, gamma data to the gyro plugin from the parent window. Works great, here's the updated gyro if anyone needs it:…kybox/skybox.js

I explain how to get it working in Doubleclick ads on the Readme:

I'm going to attempt to see if the error is caused by plugins, if so I'll report back.

Similar threads