Why doesn’t the Portainer UI load inside an iframe?
frame-ancestors 'none';PreviousRuntime and Resource sliders are not showing the set value on ARMNextWhy can I not see an option to update the Portainer version within the UI?
Was this helpful?
By default, Portainer cannot be embedded in an iframe. This is because the default Content-Security-Policy (CSP) header includes:
frame-ancestors 'none';This blocks all iframing of Portainer.
If you need to allow iframing, you can disable the CSP header entirely by setting the --no-csp flag when running Portainer.
This removes all of the Content-Security-Policy header, so please use it with caution and at your own risk, and only if you need the iframing to work for you.
Was this helpful?
Was this helpful?