Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nextcloud Will Not Show OnlyOffice In iFrame #142

Open
mhfowler opened this issue Dec 6, 2024 · 2 comments
Open

Nextcloud Will Not Show OnlyOffice In iFrame #142

mhfowler opened this issue Dec 6, 2024 · 2 comments

Comments

@mhfowler
Copy link

mhfowler commented Dec 6, 2024

Describe the bug

nextcloud will not show onlyoffice document in iframe

Context

  • Hardware: Lenove Thinkcentre
  • YunoHost version: 11.3.0.2
  • I have access to my server: yes
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: I route my internet traffic to my homeserver through a VPN. But HTTPS and other things are working for other apps, just not this one
    • If yes, please explain:
  • Using, or trying to install package version/branch: Nextcloud: 29.0.4ynh2, OnlyOffice 8.1.1ynh1

Steps to reproduce

After installing nextcloud (which is working fine), I installed OnlyOffice, and tried to do the integration. I set the secret key and all appeared to work. I can even see the option to create XLSX and other document types in nextcloud now.

However, when I go to the document, for example curriculum.xlsx, I see an error that my Nextcloud cannot communicate with oo.commoninternet.net (the domain of only office). Maybe this is an iframe issue? How do I resolve this?

If I go to the url of onlyoffice directly, it works fine and has proper https. Both nextcloud and onlyoffice are working independently, but together they are not working because of this error via the screenshot below.

Screenshot from 2024-12-06 15-38-33

I also tried changing the domain of onlyoffice to be a subdomain of nextcloud and that did not help either (nextcloud at nc.commoninternet.net and onlyoffice at oo.nc.commoninternet.net)

@mhfowler
Copy link
Author

mhfowler commented Dec 6, 2024

indeed, when I added the firefox "Ignore X-Frame-Options" extension, and ignored my domains, then it works.

but still wondering how to make it work for others without the extension?

@looowizz
Copy link

looowizz commented Feb 3, 2025

A bit late but, hm weird. The only thing i would think of is to double check you inputted the the correct domain of your nextcloud instance when installing onlyoffice?

It should then automatically allow Nextcloud to communicate to it due to this line:

more_set_headers "X-Frame-Options : ALLOW-FROM https://__NEXTCLOUDDOMAIN__ always";

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants