Skip to content

Homeassistant ifame #411

@Lillifee

Description

@Lillifee

First of all - great project, with a nice user interface, and perfect documentation.

Is your feature request related to a problem? Please describe.
Homeassistant allows the creation of custom menu entries to embed sites like adguard, grafana, etc.

configuration.yaml

panel_iframe:
  speedtest:
    title: Speedtest
    icon: mdi:speedometer
    url: "http://192.168.3.5:8080"

Speedtest refuses the connection in an iframe
Refused to display 'http://192.168.3.5:8080/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

image

console output
image

Describe the solution you'd like
It would be nice to set an environment variable like grafana to allow the same origin and embedding of the site.

example of grafana docker compose:

  environment:
      GF_SECURITY_ALLOW_EMBEDDING: true
      GF_SECURITY_COOKIE_SAMESITE: none

Additional context

Homeassistant
https://community.home-assistant.io/t/solved-panel-iframe-grafana-docker-doesnt-work/143445/12

Please rate this feature with a low priority.
Thanks a lot

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions