简体   繁体   English

window.opener 在安全区域更改后在 Internet Explorer 中变为 null

[英]window.opener becomes null in Internet Explorer after security zone change

My application runs in Local Intranet zone which launches a popup.我的应用程序在启动弹出窗口的本地 Intranet 区域中运行。 This popup opens another page in my application (Local Intranet zone) which redirects to an authentication page (Internet zone) which after successful authentication sends back to my application page ( Local Intranet zone).此弹出窗口在我的应用程序(本地 Intranet 区域)中打开另一个页面,该页面重定向到身份验证页面(Internet 区域),在成功身份验证后发送回我的应用程序页面(本地 Intranet 区域)。 However, at the final page, window.opener becomes null and I can't call methods on parent page.但是,在最后一页, window.opener 变为 null ,我无法调用父页面上的方法。

This doesn't happen when all pages load from the same zone.当所有页面从同一区域加载时,不会发生这种情况。 Is there a way around this behavior so that I can call methods on parent page after redirect?有没有办法解决这种行为,以便我可以在重定向后调用父页面上的方法?

This sounds very much like an intentional security measure - I can't think of a way to circumvent it.这听起来很像是一种故意的安全措施——我想不出办法来规避它。

You could try using a modal dialog (see here how to address the opener from there) and see whether it behaves any different, but I wouldn't hold my breath - it's likely the same security model applies there as well.您可以尝试使用模式对话框(请参阅此处如何从那里解决开瓶器)并查看它的行为是否有任何不同,但我不会屏住呼吸 - 很可能同样的安全性 model 也适用于那里。

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

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