[英]How to get MYSAPSSO2 Cookie with SAPUI5
im trying to get MYSAPSSO2 Cookie from a Portal.我正在尝试从门户获取 MYSAPSSO2 Cookie。
I test with Postman and i can see the cookie in the Cookies Tab:我用 Postman 测试,我可以在 Cookies 选项卡中看到 cookie:
Screenshots from postman:邮递员截图:
Headers:标题:
And here are the parameters i'm passing in the body and header这是我在正文和标题中传递的参数
Now the problem is that i can't get the same values from JavaScript.现在的问题是我无法从 JavaScript 获得相同的值。 Postman gives the code snipet to call the service like this:
Postman 给出了代码 snipet 来调用服务,如下所示:
Then if i try to execute this from my application i get this:然后,如果我尝试从我的应用程序中执行它,我会得到:
Thanks,谢谢,
The MYSAPSSO2 cookie is httpOnly
. MYSAPSSO2 cookie 是
httpOnly
。 This means that it cannot be accessed from a client.这意味着它不能从客户端访问。
https://www.owasp.org/index.php/HttpOnly https://www.owasp.org/index.php/HttpOnly
However you can create new tokens in the backend with the function module CREATE_RFC_REENTRANCE_TICKET
and expose them via OData.但是,您可以使用功能模块
CREATE_RFC_REENTRANCE_TICKET
在后端创建新令牌,并通过 OData 公开它们。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.