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

爷,独闯天下 提交于 2019-12-24 04:06:19

问题


My application runs in Local Intranet zone which launches a popup. 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). However, at the final page, window.opener becomes null and I can't call methods on parent page.

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?


回答1:


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.



来源:https://stackoverflow.com/questions/6190879/window-opener-becomes-null-in-internet-explorer-after-security-zone-change

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!