[GH-ISSUE #88] Fully Kiosk Browser using iframe #43

Closed
opened 2026-05-07 00:18:14 +02:00 by BreizhHardware · 7 comments

Originally created by @StevenDTX on GitHub (Aug 20, 2025).
Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/88

Originally assigned to: @glenndehaan on GitHub.

The question

I have a number of tablets running Fully Kiosk Browser. Adding https://voucher.domain.com/kiosk to a Home Assistant dashboard (using an iFrame card), I believe the CSS gets messed up.

Maybe something is misconfigured on my end?

Thanks.

Fully Kiosk:
Image

Desktop browser:

Image
Originally created by @StevenDTX on GitHub (Aug 20, 2025). Original GitHub issue: https://github.com/glenndehaan/unifi-voucher-site/issues/88 Originally assigned to: @glenndehaan on GitHub. ### The question I have a number of tablets running Fully Kiosk Browser. Adding https://voucher.domain.com/kiosk to a Home Assistant dashboard (using an iFrame card), I believe the CSS gets messed up. Maybe something is misconfigured on my end? Thanks. Fully Kiosk: <img width="1920" height="1200" alt="Image" src="https://github.com/user-attachments/assets/2ea63e63-8cc9-410e-a017-746d5d65fd9c" /> Desktop browser: <img width="1176" height="785" alt="Image" src="https://github.com/user-attachments/assets/22ab91be-ab2f-4d07-8086-cf361e3ecb7b" />
BreizhHardware 2026-05-07 00:18:14 +02:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@glenndehaan commented on GitHub (Aug 20, 2025):

Hi @StevenDTX,

Looking at the screenshots you provided it seems to me like the CSS is either not loaded or gets blocked.
One thing I would try is to see if you load the page without the iframe if it loads.

If it does, then I suspect there is some cross-origin issue going on within fully kiosk. (Maybe your HA is running on HTTP and the voucher system is running of HTTPS?)

Hope this helps.

Kind regards,
Glenn de Haan

<!-- gh-comment-id:3208109935 --> @glenndehaan commented on GitHub (Aug 20, 2025): Hi @StevenDTX, Looking at the screenshots you provided it seems to me like the CSS is either not loaded or gets blocked. One thing I would try is to see if you load the page without the iframe if it loads. If it does, then I suspect there is some cross-origin issue going on within fully kiosk. (Maybe your HA is running on HTTP and the voucher system is running of HTTPS?) Hope this helps. Kind regards, Glenn de Haan
Author
Owner

@StevenDTX commented on GitHub (Aug 20, 2025):

I loaded it directly in Fully Kiosk Browser (bypassing Home Assistant) and I get a similar result. I also get the same result whether I connect through my reverse proxy (SSL is required to present the page in HA) or if I connect to the docker directly (http://:3008).

So, it has to be something in Fully Kiosk.

Thanks!

Image
<!-- gh-comment-id:3208265970 --> @StevenDTX commented on GitHub (Aug 20, 2025): I loaded it directly in Fully Kiosk Browser (bypassing Home Assistant) and I get a similar result. I also get the same result whether I connect through my reverse proxy (SSL is required to present the page in HA) or if I connect to the docker directly (http://<ip>:3008). So, it has to be something in Fully Kiosk. Thanks! <img width="1080" height="720" alt="Image" src="https://github.com/user-attachments/assets/f8935ba7-57d3-4fd9-9319-38328e2ef64f" />
Author
Owner

@StevenDTX commented on GitHub (Aug 21, 2025):

Made a bit of progress! I was standing in front of the tablet (Fire Tablet 10 HD 2021) and I noticed a quick popup about "outdated webview". I discovered v90 was installed. I found a version (v108) that works with this tablet and installed it. Its much better, but still missing a couple of elements.

Is there a way to force dark mode in options.json?

Image
<!-- gh-comment-id:3208556993 --> @StevenDTX commented on GitHub (Aug 21, 2025): Made a bit of progress! I was standing in front of the tablet (Fire Tablet 10 HD 2021) and I noticed a quick popup about "outdated webview". I discovered v90 was installed. I found a version (v108) that works with this tablet and installed it. Its much better, but still missing a couple of elements. Is there a way to force dark mode in options.json? <img width="1280" height="720" alt="Image" src="https://github.com/user-attachments/assets/b6120ce9-292d-4be7-a297-7dc2cd3126ec" />
Author
Owner

@glenndehaan commented on GitHub (Aug 21, 2025):

Hey, yeah that could be indeed the issue since tailwind v4 utilizes some CSS selectors that are not working on older browsers. In terms of darkmode there is no way to force it from a config perspective since it chooses based on the device preference. May be there is way to force that within Fully Kiosk?

<!-- gh-comment-id:3209224460 --> @glenndehaan commented on GitHub (Aug 21, 2025): Hey, yeah that could be indeed the issue since tailwind v4 utilizes some CSS selectors that are not working on older browsers. In terms of darkmode there is no way to force it from a config perspective since it chooses based on the device preference. May be there is way to force that within Fully Kiosk?
Author
Owner

@glenndehaan commented on GitHub (Aug 21, 2025):

So I found a way that works on Firefox, and I think it should also work in your case. In your HA profile settings you can force the color theme:

Image

So even tho my system color is set to dark, if I force light it also changes the behavior of the Voucher Site. Do note that i'm running the Voucher site as an addon in HA, and therefore use the sidebar tab and not the iframe. But maybe it works the same.

<!-- gh-comment-id:3209255094 --> @glenndehaan commented on GitHub (Aug 21, 2025): So I found a way that works on Firefox, and I think it should also work in your case. In your HA profile settings you can force the color theme: <img width="663" height="587" alt="Image" src="https://github.com/user-attachments/assets/6c4bbe46-f48e-4f4f-b74c-13f93c8e6424" /> So even tho my system color is set to dark, if I force light it also changes the behavior of the Voucher Site. Do note that i'm running the Voucher site as an addon in HA, and therefore use the sidebar tab and not the iframe. But maybe it works the same.
Author
Owner

@StevenDTX commented on GitHub (Aug 21, 2025):

I worked out the dark mode issue.

I also installed the voucher site as an HA addon and added it via the sidebar card. Unfortunately, I got the same result.

I may just have to punt this for now and go back to my old voucher method until I can replace all of my tablets.

Thanks.

<!-- gh-comment-id:3211424404 --> @StevenDTX commented on GitHub (Aug 21, 2025): I worked out the dark mode issue. I also installed the voucher site as an HA addon and added it via the sidebar card. Unfortunately, I got the same result. I may just have to punt this for now and go back to my old voucher method until I can replace all of my tablets. Thanks.
Author
Owner

@glenndehaan commented on GitHub (Aug 21, 2025):

Ah that is unfortunte to hear. Then I will close this issue for now.

<!-- gh-comment-id:3211718434 --> @glenndehaan commented on GitHub (Aug 21, 2025): Ah that is unfortunte to hear. Then I will close this issue for now.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/unifi-voucher-site#43
No description provided.