Frage

I am using a window.open and trying to call a function form my parent window using window.opener but I get nothing.

Does anyone know why this happens?

[Error] Blocked a frame with origin "http://website.com" from accessing a frame with origin "http://www.website.com". Protocols, domains, and ports must match. global code (file.php, line 4)

War es hilfreich?

Lösung

@Cale_b helped me answered this question perfectly.

Change your code so that your site, and all frame, access the site with the same subdomain. Either make them all http://website.com, or all http://www.website.com

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top