Skip to content

[Vaultwarden] Hint at problems with default Web Security Headers #1902

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JayBraker
Copy link

The guide should be amended by a hint towards uberspaces default Web Security Headers which might interfere with 2-step login and or notifications.

Refer to https://github.com/dani-garcia/vaultwarden/blob/8d1df08/src/util.rs lines 38 and 73

Also see #1901

The guide should be amended by a hint towards uberspaces default Web Security Headers which might interfere with 2-step login and or notifications.

Refer to https://github.com/dani-garcia/vaultwarden/blob/8d1df08/src/util.rs lines 38 and 73
@JayBraker
Copy link
Author

I am not too experienced writing documentation, this is just what I would have needed in the guide

Copy link
Member

@nichtmax nichtmax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! It would be useful to have specific instructions for this case.

@@ -123,6 +123,10 @@ Setup web backend

If you want to use a subdomain refer to the :manual:`web-backend manual <web-backends>`.

.. note::
The default nginx config defines `X-Frame-Options: SAMEORIGIN` for all web backends. This may cause compatibility issues with the 2-step login feature and desktop/mobile clients as well as notifications on websockets.
If you encounter these issues, you may want to consider suppressing that header for relevant paths i. e. /*connector.html, /notifications/hub, /notifications/anonymous-hub, refer to the :manual:`web-security-headers manual<web-security-headers>`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if you told how exactly to suppress these headers in this case.

@nichtmax nichtmax marked this pull request as draft June 10, 2025 12:29
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

Successfully merging this pull request may close these issues.

2 participants