SAP CP中HTML5应用程序的安全约束/受保护路径的问题

2020-08-21 23:08发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)嗨社区 我想使用SAP Clo...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


嗨社区

我想使用SAP Cloud Platforms"应用程序权限"概念来阻止某些用户访问我的HTML5应用程序的某些部分。

为此,我在我的neo-app.json中添加了以下内容

" securityConstraints":[{
 " permission":" myPermission",
 " description":" description",
 " protectedPaths":[
 "/webapp/index.html?hc_reset#/protected/",
 "/webapp/index.html/protected/",
 "/webapp/index.html#/protected/"
 ]
 }]
 

确实,它阻止了对"/webapp/index.html/protected/"的访问,但是阻止了"/webapp/index.html#/protected/"(UI会自动使用)和"/img/webapp/index" .html?hc_reset#/protected/"保持不受保护。

我尝试使用通配符并转义#,但这没有用。

我该如何解决?

非常感谢您的回复!

7条回答
spaceman01
2020-08-21 23:55

您好,Richard,谢谢您的答复。 不幸的是,我仍然无法通过您的答案解决问题。

一周热门 更多>