mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-03-02 22:57:00 -05:00
iFrame integration not working for status page #728
Labels
No labels
A:accessibility
A:api
A:cert-expiry
A:core
A:dashboard
A:deployment
A:documentation
A:domain expiry
A:incidents
A:maintenance
A:metrics
A:monitor
A:notifications
A:reports
A:settings
A:status-page
A:ui/ux
A:user-management
Stale
ai-slop
blocked
blocked-upstream
bug
cannot-reproduce
dependencies
discussion
duplicate
feature-request
feature-request
good first issue
hacktoberfest
help
help wanted
house keeping
invalid
invalid-format
invalid-format
question
releaseblocker 🚨
security
spam
type:enhance-existing
type:new
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/uptime-kuma#728
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Marian-Lein on GitHub (Jan 8, 2022).
⚠️ Please verify that this bug has NOT been raised before.
🛡️ Security Policy
Description
iFrame integration not working for status page when providing
-e UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN=1as 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/statuspageWorking 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
@Sloth-on-meth commented on GitHub (Jan 26, 2022):
having this same issue - i want to embed the status page into my error pages :P
@jareau commented on GitHub (Mar 26, 2022):
Having same problem. I want to embed the /status page into a MagicMirror project. Getting the same refused to display error.
Edit:
This
-e UPTIME_KUMA_DISABLE_FRAME_SAMEORIGIN=1
worked for me in a plain html page. I was able to get the iframe to load. Next for me, work in MagicMirror to see if I can get it to load in there.
Cheers.
@InsaneSplash commented on GitHub (Jun 3, 2022):
I'd be interested in this but running it through pm2 and not a docker instance.
@JWilson5607 commented on GitHub (Jul 27, 2022):
@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
@CommanderStorm commented on GitHub (Jan 17, 2024):
@KRider92
The correct envionment variable value is
true(not1).This might have changed in the last 1.5 years, idk.
Here are the relevant wiki pages:
Closing as resolved