You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This URL is iframe URL.
Problem is when I log in to HA on browser where I didn't logged in before. In that case ingress_session cookie is missing, it is still not generated.
In that case I'm getting "401 (Unauthorized)", and in Supervisor logs I get "[supervisor.api.ingress] No valid ingress session None"
If I open add-on with steps "Settings->Add-ons-> open add-on -> OPEN WEB UI" this ingress_session is generated and now everything works as expected in card/panel also.
If I delete cookie from browser cache it still works, so it seems that session is stored somewhere in backend and connected with hass_token?
My question:
is there a way on HA to generate ingress_session on login or with card initialization?
.
There is second option. If I use this config (with direct add-on URL):
type: iframe
url: /8e14ce16_glamos_klet3d/ingress
It works correctly (opens add-on/app), but than inside of card/panel I have additional HA sidebar. Is there a way to avoid this sidebar?
Thanks!
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Steps to reproduce the issue
Install and setup add-on
Add add-on as iframe to card/panel
Login from incognito browser
It will return 401
Open add-on from Settings or sidebar
Now it works in card/panel also
Anything in the Supervisor logs that might be useful for us?
2024-04-26 09:21:05.659 WARNING (MainThread) [supervisor.api.ingress] No valid ingress session None
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Describe the issue you are experiencing
Hi,
I've created add-on from web app. I want to display this app in card/panel of HA and displaying works, but...
This is config I use:
This URL is iframe URL.
Problem is when I log in to HA on browser where I didn't logged in before. In that case ingress_session cookie is missing, it is still not generated.
In that case I'm getting "401 (Unauthorized)", and in Supervisor logs I get "[supervisor.api.ingress] No valid ingress session None"
If I open add-on with steps "Settings->Add-ons-> open add-on -> OPEN WEB UI" this ingress_session is generated and now everything works as expected in card/panel also.
If I delete cookie from browser cache it still works, so it seems that session is stored somewhere in backend and connected with hass_token?
My question:
is there a way on HA to generate ingress_session on login or with card initialization?
.
There is second option. If I use this config (with direct add-on URL):
It works correctly (opens add-on/app), but than inside of card/panel I have additional HA sidebar. Is there a way to avoid this sidebar?
Thanks!
What type of installation are you running?
Home Assistant OS
Which operating system are you running on?
Home Assistant Operating System
Steps to reproduce the issue
Anything in the Supervisor logs that might be useful for us?
System Health information
System Information
Home Assistant Cloud
Home Assistant Supervisor
Dashboards
Recorder
Supervisor diagnostics
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: