iframe in KNIME webportal

Hi there,
I am trying to embed a report as an iframe in the generic javascript view. Please see below.
image
When I ran this, it worked locally but on the server(webportal), it said that the content is blocked. I am pretty sure the cookie policies are all up to date.

I tried to use the ‘embed’ HTML tag instead of ‘iframe’ but still, it worked locally but not on the web portal. I used other nodes as well to write this html code and I face the same issue. It would be great if someone could help me out with this issue. Thank you very much!

1 Like

Hi @RijinM,

There is a security feature to prevent undesired websites from being embedded: Content-Security-Policy - HTTP | MDN

The Content-Security-Policy can be set via com.knime.server.webportal.csp (https://docs.knime.com/latest/webportal_admin_guide/index.html)

See also com.knime.server.csp-report-only (KNIME Server Administration Guide)

Both parameters are found in the WebPortal admin configuration.

Best regards,
Linh

3 Likes