Hello everybody, I was trying to integrate AWS Op...
# general
b
Hello everybody, I was trying to integrate AWS Open Search iframe in Angular application but I got the following error:
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-75XtnrpDA0UHDMcl7S8lvswryIOd0RqgacRh0AMOgdk='), or a nonce ('nonce-...') is required to enable inline execution.
error
{"statusCode":401,"error":"Unauthorized","message":"Authentication required"}
This is my iframe code:
<iframe src="<https://xxxxxxxxxxxx.ap-southeast-1.es.amazonaws.com/_dashboards/app/dashboards?security_tenant=private#/view/xxxxxxxxxx?embed=true&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-30d,to:now))&_a=(description:'',filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:''),timeRestore:!f,title:'API%20Stats',viewMode:view)>" height="600" width="800"></iframe>
Can anyone have solution for this issue?