matrix-dimension icon indicating copy to clipboard operation
matrix-dimension copied to clipboard

running own etherpad-light instance: Sorry, this content cannot be embedded

Open flyinghuman opened this issue 5 years ago • 9 comments

Hello, i setup dimension to work with our own RIOT and matrix-synapse homeserver. So far so good. Now we would like to have our own hosted etherpad-light integrated with RIOT. It is on the same server like riot is and can accessed via https://myriothost.tld/pad using nginx reverse proxy.

If we change the defautl url for the widget to our own etherpad-light a error message shows up: Sorry, this content cannot be embedded. What is the reason for that? can anyone here help me? Thanks! Etherpad_error

flyinghuman avatar Jun 19 '20 14:06 flyinghuman

i found a plugin for add embedding headers which solved my problem: https://www.npmjs.com/package/ep_helmet

i only must add my dimension domain name in the etherpad seetings file:

"ep_helmet":{
  "frameguard":{
    "action": "allow-from",
    "domain": "https://DOMAINIFRAMEWILLBEHOSTEDIN.com"
  }
}

flyinghuman avatar Jun 19 '20 14:06 flyinghuman

nope, today the same error occured. reopening this issue. what can i do? configure nginx with special options? thanks!

flyinghuman avatar Jun 22 '20 08:06 flyinghuman

@flyinghuman Did you somehow fix the issue? I encounter the same issue.

TheOneWithTheBraid avatar Jan 10 '21 14:01 TheOneWithTheBraid

I am having this same problem.

rumsant avatar Jan 14 '21 21:01 rumsant

Same here

dimm0 avatar Mar 02 '21 20:03 dimm0

@flyinghuman Did you somehow fix the issue? I encounter the same issue.

yes, it is working for me with nginx settings:

location /pad {
                rewrite                /pad/(.*) /$1 break;
                rewrite                ^/pad$ /pad/ permanent;
                proxy_pass             http://localhost:9001/;
                proxy_pass_header Server;
                proxy_redirect         / /pad/;
                proxy_set_header       Host $host;
                proxy_buffering off;
                proxy_hide_header X-Frame-Options;
        }

flyinghuman avatar Mar 02 '21 21:03 flyinghuman

I fixed the error above by removing the room name from URL. It didn't like the "!" symbol... Now I'm having CORS issues :(

dimm0 avatar Mar 02 '21 21:03 dimm0

I fixed the error above by removing the room name from URL. It didn't like the "!" symbol... Now I'm having CORS issues :(

try the helmet plugin in etherpad-lite and the above mentioned nginx proxy_hide_header X-Frame-Options;

flyinghuman avatar Mar 02 '21 22:03 flyinghuman

Ok, I fixed it without the plugin. Simply removing the $room makes the trick, since private rooms have "!" in the name

dimm0 avatar Mar 02 '21 23:03 dimm0