SAP Fiori Launchpad超时外壳插件应用程序-已被CORS策略阻止

时间:2019-11-06 12:17:56

标签: ajax sap sap-fiori sap-cloud-platform

我已经实现了Fiori的“ Shell超时”以禁用SAP Cloud Platform Launchpad上的超时。

将Shell插件应用程序部署到我们的Fiori Launchpad时会很好。

但是,应用内的AJAX调用出现了

错误
Access to XMLHttpRequest at 'https://launchpadtimeout-xxxxxxx.dispatcher.hana.ondemand.com/?_=1573041816189' from origin 'https://flpnwc-xxxxxx.dispatcher.hana.ondemand.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

我的应用是使用此博客整理在一起的:

https://help.sap.com/viewer/8422cb487c2146999a2a7dab9cc85cf7/Cloud/en-US/87764543e31247b5b471c06e3f6da6fc.html

我试图在SAP Cloud Platform中添加目标无效。

1 个答案:

答案 0 :(得分:0)

uri是应用程序的fiori Launchpad uri,而不是SCP uri。