How to enable cross origin embedding for snap

Description

Hi,

I am trying to embed my rocket.chat into another webpage. I am getting an error due to CORS policy not allowing cross origin requests (“Refused to display ‘https://chat.mycompany.com/’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’.”)

How do I update the snap configuration to enable cross origin embedding?

Server Setup Information

  • Version of Rocket.Chat Server: most recent
  • Operating System: Ubuntu (on DigitalOcean droplet)
  • Deployment Method: snap
  • Number of Running Instances: 1

I found the solution to this. As an administrator it is possible to change settings regarding iframes in a couple of places. You need to both turn off the restriction against iframe embedding, and turn on a setting that turns on iframe embedding.

1 Like