如何在工作灯中显示在浏览器控制台中的jsessionid [英] how to get jsessionid shown in browser console in worklight
问题描述
如何在 worklight 中在浏览器控制台中显示jsessionid
.我已经尝试过document.cookie
,但是它没有用.我在这里只能获得WL_PERSISTENT_COOKIE
值.
How to get jsessionid
shown in browser console in worklight. I have tried document.cookie
, but it was invain. I am able to get only WL_PERSISTENT_COOKIE
value here.
var sessionId = document.cookie;
请参阅 http://i.stack.imgur.com/VMm5p.png
在提供 document.cookie 时,我得到了WL_PERSISTENT_COOKIE
的值.但是我需要JSESSIONID
的值.
On giving document.cookie, I am getting the value of WL_PERSISTENT_COOKIE
. But I need the value of JSESSIONID
.
推荐答案
JSESSIONID
在Worklight中被标记为HttpOnly
.
JSESSIONID
in Worklight is flagged as HttpOnly
.
这是一项安全功能,可防止JavaScript访问cookie,从而降低XSS攻击的风险.
This is a security feature that prevents JavaScript access of a cookie, therefore reducing risks of XSS attacks.
它们可能是我不知道的解决方法.
They may be workarounds I don't know about.
更多信息: https://www.owasp.org/index.php/HttpOnly
这篇关于如何在工作灯中显示在浏览器控制台中的jsessionid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!