Hello,
I would like to embed a content from NextCloud to a Wordpress site. Both platform are on ynh, but on different servers.
I tried to follow this thread.
• Yunohost 4.1.6 on VPS
• Wordpress package 5.6~ynh1
I’ve created some content using H5P module on Wordpress.
Everything is fine except I can’t share my embeded content outside my site.
It seems nginx is configured in a way that does not allow its contents to embedded elsewhere (X-Frame-Option is set up at: “sameorigin” )
I do not understand how to change that on my server (and if there are security issues do it).
I also have a Peertube server on my YNH and embeded video are working perfect…
I added this line
proxy_set_header X-Forwarded-Proto $scheme; # for EP to set secure cookie flag when https is used
to /etc/nginx/conf.d/cloud.domain.it
But I still receive the same error.
Thank you.
(Untested)
Try adding more_clear_headers "X-Frame-Options";
in the location
block of your nextcloud.conf file.
1 Like
Could it be that is this option that doesn’t allow embedding of a Wordpress website to another Wordpress website? I know Wordpress embed automatically other website links, but this is not happening right now.
Thanks
Could be yes. This header is set as a general secutity header by YunoHost. Add my line wherever you need to disable it.
1 Like
system
Closed
April 24, 2023, 2:16pm
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.