[PR #2547] [dashboard] Use X-Frame-Options sameorigin header #3417

Open
opened 2025-11-20 08:05:58 -05:00 by saavagebueno · 0 comments
Owner

Original Pull Request: https://github.com/netbirdio/netbird/pull/2547

State: closed
Merged: Yes


Describe your changes

The previous X-Frame DENY header prevented to display the page inside an iFrame.
The current OIDC library for the dashboard uses iFrame to perform a silent login.

Silent signing uses cookies from your OIDC provider to restore the session and retrieve tokens. It opens an IFrame in the background, directed to a specific page on your OIDC provider.

This fix changes the X-Frame-Options header DENY to SAMEORIGIN

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary
**Original Pull Request:** https://github.com/netbirdio/netbird/pull/2547 **State:** closed **Merged:** Yes --- ## Describe your changes The previous X-Frame DENY header prevented to display the page inside an iFrame. The current OIDC library for the dashboard uses iFrame to perform a silent login. > Silent signing uses cookies from your OIDC provider to restore the session and retrieve tokens. It opens an IFrame in the background, directed to a specific page on your OIDC provider. This fix changes the X-Frame-Options header `DENY` to `SAMEORIGIN` ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary
saavagebueno added the pull-request label 2025-11-20 08:05:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#3417