Hosting environments which set "X-Frame-Options: SAMEORIGIN" will break CryptPad in such a way that user has no idea WTF is going on #1732
Labels
Invalid
We can't do anything about it in its current state
Description
https://sunbeam.city/@notplants/113625841650195515
User was trying to run CryptPad on a server which was based on YunoHost. YunoHost sets
X-Frame-Options: SAMEORIGIN
across the board.This causes CryptPad to fail and display a network error in the web browser. It fails so hard it can't even display an error message:
Steps to reproduce
Host behind an HTTP reverse proxy which sets the
X-Frame-Options: SAMEORIGIN
response header.Relevant logs
See screenshots
Expected behavior
As an iframe user, Cryptpad should check to make sure that the
X-Frame-Options
is not set or is set correctly, and warn the user if it is not.This JavaScript should do it. You just need to pass the sandbox origin to the JS somehow so it can run on page load before the iframe attempts to load:
Which operating system are you using?
Linux/BSD/UNIX
What browsers are you seeing the problem on?
Mozilla Firefox
Extensions
N/A (CryptPad version 5.3.0)
Version
Other
The text was updated successfully, but these errors were encountered: