I am getting an error when my app is being emb开发者_高级运维edded in an iframe that reads
Permission denied for https://myapp.com to call method Location.toString on http://otherhost.com
I am not getting a stack trace, line number, or file where this occurring in any of the browsers. How could I figure out where this problem is coming from?
This error is happening because of the same-origin policy. You can't run any Javascript from a non-extension source inside of a cross domain iframe. That is, an Iframe that is from a different domain than the main page's.
I determined that this error was coming from some JS tracking code that was including some flash to do it's tracking inside the iFrame, turned off the flash portion and this error disappeared
精彩评论