pierre-alain-b / rainloop-nextcloud

Rainloop plugin for Nextcloud
110 stars 37 forks source link

Rainloop in Nextcloud in myApp #203

Closed mmallejac closed 4 years ago

mmallejac commented 4 years ago

Hello !

We've successfully included Nextcloud within our web app, by tweaking /var/www/html/lib/public/AppFramework/Http/ContentSecurityPolicy.php, it works just fine, except for Rainloop which is itself included within an iFrame in Nextcloud.

We would like to call directly the Rainloop frame from our web app, or at a minimum call Rainloop from within Nextcloud (within our app). For both, we get blocked by X-Frame-Options Policy.

I had some success in the past tweaking the data/rainloop-storage/_data_/_default_/configs/application.ini file with the content_security_policy parameter, with a value of "frame-ancestors https://ourapp" but :

Any direction would be much appreciated ! Many thanks

pierre-alain-b commented 4 years ago

CSP are also set for the Rainloop app in the lib/Controller/PageController.php. Maybe you also have to tweak something here?

mmallejac commented 4 years ago

Thanks for pointing this ! I've tried but no luck so far...

pierre-alain-b commented 4 years ago

application.ini is supposed to still be there, are you sure you are looking in the right folder?