【问题标题】:Is it possible to block cookies in IE11IE11可以屏蔽cookie吗
【发布时间】:2019-04-08 00:27:19
【问题描述】:

我正在测试(在 Windows 7 64 位的本地主机上)我的 Web 应用程序在 cookie 被阻止时的行为。

在 IE11 上测试时,您似乎无法阻止 cookie,即使 IE11 设置显示我已阻止 cookie。(我也尝试卸载并重新安装 IE11,以防万一出现问题,但无法阻止 cookie .)

我研究并去过以下地方但没有答案;

  1. Cookies disable doesn't work in Internet Explorer 11 using advance setting
  2. Cookie disabled issue in IE
  3. document.cookie is still accessible on IE11, even though cookies are disabled
  4. https://superuser.com/questions/1000545/internet-explorer-11-cant-disable-localhost-cookies

或者我应该忘记 Internet Explorer 吗? (提前感谢编码社区)

【问题讨论】:

    标签: internet-explorer-11


    【解决方案1】:

    我认为你和我面临同样的问题。我也搜索了很多。 我发现 Cookie 设置只影响包含真实域的网站(即:examples.com、abc.net、...)

    1. 您可以通过编辑 (C:\Windows\System32\drivers\etc) 中的主机文件来更改 localhost 域

    2. 在该文本文件的末尾包含一行,如下所示:

    127.0.0.1 testweb.net

    现在,无论何时键入 testweb.net,它都会返回与 localhost 相同的页面。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-08
      • 1970-01-01
      • 2010-10-14
      • 2019-05-19
      相关资源
      最近更新 更多