I’m successfully displaying the appointment scheduling page in an iframe on a separate website. I’m trying to hide the header that displays in the iframe but cant figure out what needs to be added. when im using dev tools i can delete this node and the header will be gone.
Did you have to modify any settings to be able to embed this in an iframe on an external domain? I’m trying to do the same but always get a “refused to connect” error when trying to embed on an external domain.
I see some references to Content-Security-Policy or ContentSecurityPolicy.php but they are all years old for previous version of nextcloud. Any insight would be helpful?
I’ve been editing the ContentSecurityPolicy.php as I detailed here
I’ll have to try the app ernolf is mentioning above, though I’ve got this working well enough after editing that php file. the sidebars showing was just aesthetics that dont matter that much i guess. editing the php file should get yours to display.
Oh cool. So you’ve already looked into CSP in depth. That obviously makes it a lot easier!
Changing the file means that its integrity is no longer correct and warnings can appear. In addition, it then has to be changed again with each new Docker image, which you have already tried to do with docker environment Variables.
But that way around is like the tail waggling the dog.
I think it is much more stable and elegant to add the corresponding domain in the config.php as with the app I recommended.
Thank you. I did just set this up and removed my changes to the system php file and this worked perfectly on both points. Now i dont have to have a script that sed’s the php on container rebuild
Have a great day!