Rendering a pdf file into an ftl page (howto)

Hi all,

I’m trying to embed a pdf from an https external site into a keycloak’s ftl page. The Loading of this pdf is refused because of a security violation related to the
Content Security Policy directive: "object-src ‘none’.

Did somebody have already done something similar? Just consider that I tried to apply meta tag to bypass the security issue but

  1. it seems there is something other, over the page, that is blocking the page rendering
  2. anyway, it seems to be too restrictive as there are many other resources to load ‘by default’ and it could be a hard job to filter all of them

a first solution (kind of) can be found at the Realm level by changing Realm Settings :: Security Defenses :: Content-Security-policy field

1 Like