For a long time I used the Energy dashboard embedded on a node-red UI this was not a problem. (viewtopic.php?t=44289 )
before upgrade:
after upgrade to 17502:
It looks that the stricter Content-Security-Policy (CSP) send with the energy dashboard or X-Frame-Options is preventing loading the dashboard in an embedded way. It is possible to load the energy dashboard in a separate window but that doesn't look so nice.
Does anybody now a workaround for loading the energy dashboard embedded?
Embedded Energy dashboard is not loaded anymore since I updated to beta 17502
Moderators: leecollings, remb0
Forum rules
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
Before posting here, make sure you are on the latest Beta or Stable version.
If you have problems related to the web gui, clear your browser cache + appcache first.
Use the following template when posting here:
Version: xxxx
Platform: xxxx
Plugin/Hardware: xxxx
Description:
.....
If you are having problems with scripts/blockly, always post the script (in a spoiler or code tag) or screenshots of your blockly
If you are replying, please do not quote images/code from the first post
Please mark your topic as Solved when the problem is solved.
-
hansvanlin
- Posts: 11
- Joined: Wednesday 19 June 2024 10:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
-
hansvanlin
- Posts: 11
- Joined: Wednesday 19 June 2024 10:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Embedded Energy dashboard is not loaded anymore since I updated to beta 17502
I found that something is changed in the latest beta https://github.com/domoticz/domoticz/pull/6676
possible cause new security headers:
iamserver/IamService.cpp: pass TLS flag to add_security_headers() to align with the libwebem update (security headers now sent over plain HTTP; HSTS only over TLS per RFC 6797)
or DOMPurifyis is not configured anymore for iframe:
Used AI to find out what DOMPurifyis doing and it looks it can be configured to safely load iframe:
possible cause new security headers:
iamserver/IamService.cpp: pass TLS flag to add_security_headers() to align with the libwebem update (security headers now sent over plain HTTP; HSTS only over TLS per RFC 6797)
or DOMPurifyis is not configured anymore for iframe:
Used AI to find out what DOMPurifyis doing and it looks it can be configured to safely load iframe:
- gizmocuz
- Posts: 3026
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Embedded Energy dashboard is not loaded anymore since I updated to beta 17502
Should be solved now in beta 17508
Question, why are you using Node-Red dashboard and not make yourself a good looking template that you can place in Domoticz www/templates folder?
(Possibly send some MQTT values with MQTT-AD to Domoticz)
I think Node-Red is great, but I have this one running in the background and almost never touch it. All values that I need are going to Domoticz
Question, why are you using Node-Red dashboard and not make yourself a good looking template that you can place in Domoticz www/templates folder?
(Possibly send some MQTT values with MQTT-AD to Domoticz)
I think Node-Red is great, but I have this one running in the background and almost never touch it. All values that I need are going to Domoticz
Quality outlives Quantity!
-
hansvanlin
- Posts: 11
- Joined: Wednesday 19 June 2024 10:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Embedded Energy dashboard is not loaded anymore since I updated to beta 17502
I use Node-red dashboard because it is fast and easy to make and I can connect every platform/brands without editing templates. For al lot of things you want to display in a dashboard there are nodes available. Just drag and configure and it is ready to display on the dashboard.
Unfortunately upgrading to latest version didn't solve this issue.
But I see a lot of new features ...thanks!
Unfortunately upgrading to latest version didn't solve this issue.
But I see a lot of new features ...thanks!
-
hansvanlin
- Posts: 11
- Joined: Wednesday 19 June 2024 10:56
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Embedded Energy dashboard is not loaded anymore since I updated to beta 17502
Found a fix:
installed an extension in fire-fox which disables the CSP protection.
To solve this properly Domoticz Energy Dashboard should be allowed to display in an iframe especially if iframe is running on the same device (rpi).
eg:
installed an extension in fire-fox which disables the CSP protection.
To solve this properly Domoticz Energy Dashboard should be allowed to display in an iframe especially if iframe is running on the same device (rpi).
eg: