Monday, February 25, 2008

uncaught exception: Permission denied to get property

The other day, we implemented SSL on our production site and all of a sudden some of the popup screens, that were calling javascript functions on the opening window, stopped working. After digging around this is what I discovered:

You cannot switch protocols between https and http or the other way around. As far as the browsers are concerned, this is a cross-domain permissions issue. Yes, even though the application may be calling a function on the same domain, the browsers treat it as cross domain call. Unless of course, you are truly make a cross domain call.

2 comments:

Stormcrow said...

Did you find a solution for this? I'm getting burned on the same thing - non SSL page is opening a SSL login lightbox. The snippet in the lightbox to close itself doesn't work as it refers to the parent window which is on "another domain." Of cours eit is the same domain but one is HTTP, the other HTTPS...

Twinz Lover said...

It has been over 2 years and I really don't remember it exactly but vaguely remember using the entire the site using the HTTPS protocol.