-
Is your feature request related to a problem? Please describe. I use the homeassistant So i would like to change the policy to something like
So i can embed the raspberry matic in my homeassistant. Describe the solution you'd like I guess a easy solution could be make the "X-Frame-Options" configureable for example by env variable so it could be used in docker with ease. e.g.
Describe alternatives you've considered As the X-Frame-Options seems to be deprecated already maybe switching to content-security-policy would also makes sense Additional context Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 1 reply
-
I am sorry, but I think making |
Beta Was this translation helpful? Give feedback.
-
Hi @jens-maus So i really don't see the need for converting any calls. What do you think? |
Beta Was this translation helpful? Give feedback.
-
Well, I am not sure if I understand correctly what you are exactly doing or what you exactly want to achieve. Thus, you probably need to outline it a bit more or provide more examples. However, if simply manipulating |
Beta Was this translation helpful? Give feedback.
-
Okay, the idea is to just embed the raspberry-matic ui as an iframe into homeassistant. And to make the access to raspberry-matic easy for me i want to use and panel_iframe in homeassistant But currently this is not possible because of the mentioned header. For me the docker-volume workaround is fine enough. Best regards |
Beta Was this translation helpful? Give feedback.
-
Thanks for your contribution! Vielen Dank für die Unterstützung! Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüfen Sie, ob das Problem auch in der aktuellsten Version von RaspberryMatic noch relevant ist, und teilen Sie uns dies mit. Überprüfen Sie auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind oder aktualisiert werden müssen. |
Beta Was this translation helpful? Give feedback.
-
This issue has been automatically closed because of inactivity. Please open a new issue if still relevant and make sure to include all relevant details, logs and reproduction steps. Dieses Problem wurde aufgrund von Inaktivität automatisch geschlossen. Bitte öffnen Sie ein neues Issue, falls dies noch relevant ist und stellen Sie sicher das alle relevanten Details, Logs und Reproduktionsschritte enthalten sind. |
Beta Was this translation helpful? Give feedback.
-
@jens-maus I already have other control panels integrated into my Home Assistant UI, for example, zigbee2mqtt and zwave2mqtt. I'd like to do the same with HomeMatic and currently, the site isn't loading because of the X-Frame-Options header. It'd be great to change the header by configuring either in the UI or setting it using an ENV variable (ex when using docker). |
Beta Was this translation helpful? Give feedback.
-
To remove the
Restart the http server Done. |
Beta Was this translation helpful? Give feedback.
-
@alxbauer Thank you, works like a charm (also with docker installation). |
Beta Was this translation helpful? Give feedback.
-
Even though this is an old thread I would like to share my solution which is based on @alxbauer's solution (maybe it will help others like it helped me). I think it is a bit more secure than disabling X-Frame.
That way I could embed the raspberry site in an iframe in https://myhomeassistant.mydomain.tld. |
Beta Was this translation helpful? Give feedback.
To remove the
X-Frame-Options
header create a file:/usr/local/etc/config/lighttpd/setenv.conf
Restart the http server
/etc/init.d/S50lighttpd restart
Done.