如何在工作灯中显示在浏览器控制台中的jsessionid [英] how to get jsessionid shown in browser console in worklight

查看:195
本文介绍了如何在工作灯中显示在浏览器控制台中的jsessionid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆