-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
OctoPrint (TouchUI) in Custom Action iframe? #1166
Comments
Please check whether you have embedding enabled in OctoDash: https://community.octoprint.org/t/multiple-octoprint-instances-in-one-webpage-html-using-iframe-doesnt-work/18872/3. If it doesn't work with that enabled there is unfortunately nothing that can be done here. Electron is bound to the Chromium Engine and there is no alternative with the Mozilla engine available AFAIK. I do know that the normal OctoPrint Interface can be in fact opened via an iFrame once the embedding is enabled. Maybe TouchUI is doing some funky stuff that prevents the embedding. Might also be worth to check their issues. |
Yeah, the embedding is enabled in OctoPrint settings, and rebooted for good measure. Been chatting in the OctoPrint Discord and others have reproduced the same issue as well, and linked this issue: OctoPrint/OctoPrint#3482 (comment) Seems like there's not much that can be done unfortunately, like you said. Just wanted to get some thoughts on it. |
Might be a long shot but one thing I can think off is the following:
Two things I'm not 100% sure about are though:
Just something to try maybe if you have an hour or two to spare :) Closing this here, since there is, unfortunately, nothing I can do about that from OctoDash ... |
Describe the bug
When using a Custom Action with command
"[!WEB]http://127.0.0.1/#touch"
to try and access the OctoPrint UI, it gets stuck at the login screen (pressing login does nothing).To Reproduce
Steps to reproduce the behavior:
Expected behavior
OctoPrint processes login and proceeds to UI.
General Information:
Additional context
After investigating on an iframe on my PC, and trying to bypass the issue by enabling autologin on OctoPrint, it seems the chromium (?) backend is blocking various parts of the iframe from working:
It produces error in the browser console such as "Error: Failed to read the 'localStorage' property from 'Window': Access is denied for this document" or "Blocked autofocusing on a form control in a cross-origin subframe" and various 404/403s.
If I try on my PC with Firefox, it works fine. I assume changing the browser OctoDash uses is probably not going to happen, but I just wanted to get some thoughts on workarounds to try, whether this should be a feature request instead, or if anyone else has gotten it to work.
My use case is to be able to use TouchUI as a fallback for accessing OctoPrint functionality that OctoDash does not support.
The text was updated successfully, but these errors were encountered: