i successfully installed nextcloud in my server. Now i try to integrate nextcloud in my website…
i try to load next cloud server URL in Iframe tag in my website… i faced CORS errors and i fixed it now but iframe tag show login page i try to login., it loading and showing again login page … Please Help me
How to solve it ?!
I think you can only use single files with the app “SharingPath”.
Or do you want full nextcloud in iframe. I think that does not work. But perhaps you can modifiy the nextcloud source code. I think in older versions there are solutions. Search the web.
Kindly share the older version link i need full nextcloud in Iframe
Perhaps you can use solutions for older nextcloud versions. I think you must change the code e.g. rewrites in .htaccess .
If iframes not work perhaps you like open a new tab for nextcloud (target="_blank")
Soft alternative :
edit /etc/apache2/conf-enabled/security.conf ( or .htaccess if you can’t modify this file )
add this lines :
Header always set Access-Control-Allow-Origin “*”
Header always set X-Frame-Options: “ALLOW-FROM *”
Header always set X-Content-Security-Policy: “frame-ancestors *”
Header always set Content-Security-Policy: “frame-ancestors *”
and reload :
apache2 -tS && apache2ctl restart
Works fine with nextcloud 23 on debian 11
The “always” keywords overwrite the nextcloud core php headers() calls
( you can change “*” for your target hostname for security reason )