简体   繁体   English

window.opener 在受信任站点 (IE8) 中的问题

[英]Issue with window.opener in trusted sites (IE8)

Here is my issue: I am opening a popup from the main browser window, where the use logs in to a 3rd party site.这是我的问题:我正在从主浏览器 window 打开一个弹出窗口,用户在其中登录到第 3 方站点。 After logging in, the popup window is being redirected to our site, where I have to send back a message to the original window.登录后,弹出窗口 window 被重定向到我们的站点,我必须在那里向原始 window 发回一条消息。

I am using window.opener for sending the message.我正在使用 window.opener 发送消息。 Everything works fine in IE*/Firefox/etc, but if the 3rd party site is added to the trusted sites in IE, the window.opener won't work anymore.在 IE*/Firefox/etc 中一切正常,但如果将第 3 方站点添加到 IE 中的受信任站点,window.opener 将不再工作。

Why does this happen?为什么会这样? How could this be resolved?如何解决?

Thanks in advance提前致谢

Going from one security zone to another has its consequences.从一个安全区到另一个安全区有其后果。 I don't think there is a workaround.我认为没有解决方法。

This was already discussed as window.opener becomes null in Internet Explorer after security zone change这已经被讨论为window.opener 在安全区域更改后在 Internet Explorer 中变为 null

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM