-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
iFrame integration not working for status page #1146
Comments
having this same issue - i want to embed the status page into my error pages :P |
Having same problem. I want to embed the /status page into a MagicMirror project. Getting the same refused to display error. Edit: |
I'd be interested in this but running it through pm2 and not a docker instance. |
@jareau - can you specify how you added the fix to uptime kuma? I am running it in docker on my unraid box and want to embed it into my magic mirror, but not sure how to apply the fix. I can see it being adding something to the docker config for the app, but not sure if it was in magic mirror that you did this. Edit - Added a variable to the template and set UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN to true |
@KRider92 Here are the relevant wiki pages:
Closing as resolved |
🛡️ Security Policy
Description
iFrame integration not working for status page when providing
-e UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN=1
as an environment variable to the docker container.This is problematic because the status page provides a structured overview, instead of the alphabetically sorted list.
👟 Reproduction steps
When using an iFrame to integrate uptime-kuma to another page, this works for the
/list
, but not the/status
pageWorking example:
Nonfunctional example:
👀 Expected behavior
iFrame should display (same as with /list).
😓 Actual Behavior
Web console shows error
Refused to display 'http://example.com/' in a frame because it set 'x-Frame-Options' to 'sameorigin'
🐻 Uptime-Kuma Version
1.11.3
💻 Operating System and Arch
Raspbian Linux 5.10.89-v7l+
🌐 Browser
Google Chrome 97.0.4692.71 x64
🐋 Docker Version
20.10.12
🟩 NodeJS Version
v10.24.0
📝 Relevant log output
No response
The text was updated successfully, but these errors were encountered: