我在“ SAP HANA©XS Advanced Runtime内部部署”(docker映像store/saplabs/hanaexpressxsa:2.00.036.00.20190223.1
)上的WebIde的“多目标应用程序”项目中创建了一个新的“ SAP Fiori Launchpad站点模块”,但是我得到了这个部署应用程序后出现错误:
Refused to execute inline script because it violates the following Content Security Policy directive
重现此问题的步骤:
您应该在浏览器控制台中看到错误
我尝试使用Chrome(版本75.0.3770.142)和Firefox(68.0.1(64位))访问该网站,但遇到相同的错误。
我希望显示Demo Fiori站点,但显示的是空白页面,并且在浏览器控制台中显示以下错误:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' https://hxehost:51036 https://sapui5.hana.ondemand.com". Either the 'unsafe-inline' keyword, a hash ('sha256-NgEjsBnwasEV3qUuFB3e//lUSMnxA7QXX71JM5aiVDU='), or a nonce ('nonce-...') is required to enable inline execution.
sites:11 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' https://hxehost:51036 https://sapui5.hana.ondemand.com". Either the 'unsafe-inline' keyword, a hash ('sha256-4HLEOQTTt5/QjdzyAx+0u3MGo5aetBm29vv3z8YAFuE='), or a nonce ('nonce-...') is required to enable inline execution.
sites:108 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' https://hxehost:51036 https://sapui5.hana.ondemand.com". Either the 'unsafe-inline' keyword, a hash ('sha256-weH3XITqj/IJEeUfXbDsdCe+LEtDyDiafcdwfH3Aumw='), or a nonce ('nonce-...') is required to enable inline execution.