gpt4 book ai didi

java - 有没有办法在java小程序中获取HttpOnly cookies数据?

转载 作者:行者123 更新时间:2023-11-30 05:48:43 26 4
gpt4 key购买 nike

我的小程序默认使用 HttpOnly cookie。下面提到的代码片段在 IE11 中工作,并获取小程序内的 cookie 数据。但它在 Firefox 52 ESR 中不起作用,并且返回一个 null 值。

cookies = CookieHandler.getDefault().get(new URI(URLHelper.getContextPath(this) + "/images/gui"),new HashMap<String, List<String>>());

任何帮助将不胜感激!

最佳答案

Excerpt from Oracle FAQ

Firefox no longer provides NPAPI support (technology required for Java applets) As of September, 2018, Firefox no longer offers a version which supports NPAPI, the technology required to run Java applets. The Java Plugin for web browsers relies on the cross-platform plugin architecture NPAPI, which had been supported by all major web browsers for over a decade. The 64 bit version of Firefox has never supported NPAPI, and Firefox version 52ESR is the last release to support the technology. It is below the security baseline, and no longer supported.

Excerpt from Oracle enable Java in my web browser

Firefox has removed NPAPI plugin support, and therefore Java Plugin cannot be enabled in Firefox browser version 52 and above.

关于java - 有没有办法在java小程序中获取HttpOnly cookies数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54359447/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com