henrygd / beszel

A lightweight server monitoring hub with historical data, docker stats, and alerts.
MIT License
1.11k stars 45 forks source link

Add iFrame support #112

Open nooz opened 1 month ago

nooz commented 1 month ago

For use inside other dashboards e.g. Organizr

Thanks

henrygd commented 1 month ago

Do you use a reverse proxy? If so, you should be able to delete or override the X-Frame-Options header.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

I don't want to remove the header by default, so I'll need to add an env var or command line argument to override it directly in a future release.

utlilb commented 1 month ago

I tested adding the X-Frame-Options header and it works correctly. If it doesn't work for you also check on CSP directives. This is the modern replacement for x-frame.

https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP