【问题标题】:Navigation issues inside Iframe when opened in IE在 IE 中打开时 Iframe 内的导航问题
【发布时间】:2013-11-21 21:00:35
【问题描述】:

在 IE 中,我在 iframe 中遇到问题,我无法使用 iframe 中打开的网页中的链接进行导航。

以下是更多细节 -

我的本​​地网址是:localhost:9001/ 或 MY_IP_ADDRESS:9001/

我有一个网页,里面有一个 iframe。我在我的本地 tomcat 服务器中运行这个网页。用于在 iframe 中打开网页的 url 是 -

https://www.apps.website1.com/doAddEmp

打开上面的 url 后,如果我已经登录到 website1.com,它将带我到一个页面,我可以在该页面中为员工执行添加操作,否则它将带我到登录页面(https://www.website1.com/doLogin)。

如果我已经在浏览器中登录到网站 1,现在一切都很好。但是,如果我没有登录,那么它会将我导航到 website1 的登录页面, 当我输入凭据时,它不会将我带到下一页(https://www.apps.website1.com/doAddEmp),而是重新加载并将我带回登录页面。

这在 chrome 和 firefox 中完全可以正常工作,但在 IE 中却给了我这个问题。我已经在 IE9 和 IE10 中尝试过。

我无法弄清楚发生了什么。需要帮助以了解并解决此问题。

谢谢!

【问题讨论】:

    标签: javascript html security internet-explorer iframe


    【解决方案1】:

    这个问题出现在 IE 中,因为 IE 不允许第三方 cookie。所以我在 iframe 中打开的网站试图设置 cookie,它是第三方 cookie,因为它是在 iframe 中打开的。因此我遇到了这个问题-

    我通过以下链接了解了我所面临的问题 -

    Internet Explorer Cross Domain Iframe Login

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多