Meet ONLYOFFICE Docs Cloud, complete office software as a service
Meet ONLYOFFICE Docs Cloud

Refused to display in a frame because it set X-Frame-Options to sameorigin

Hello.

I have installed the software following this guide:
Installing server version using the provided script - ONLYOFFICE

Everything is fine, but when I embed the editor in my own angular app, using the ngx-onlyoffice component, I get the following error message:

Refused to display in a frame because it set X-Frame-Options to sameorigin

If I install the “Ignore X-Frame headers” chrome extension everything works fine.

Hello @jpalvaradomil

By default you cannot use Document Server that is a part of ONLYOFFICE Workspace with other applications. “X-FRAME-OPTIONS” is a result of trying to do so.

If you want to integrate your app with our editors please consider installing a separate instance of ONLYOFFICE Docs to your server.
For example, you can use Free Community Edition of ONLYOFFICE Docs:
https://helpcenter.onlyoffice.com/installation/docs-community-index.aspx