#BookStack iframe

1 messages · Page 1 of 1 (latest)

celest locust
#

sup guys
I have BookStack add-on running at port 2665 and I have set a sidebar shortcut by adding a web url dashboard

  panel_iframe:
    mdi_icons:
      title: "Wiki"
      url: "http://192.168.0.23:2665/?iframe=true&theme=dark"
      icon: mdi:wikipedia

when I click the shortcut it can't load the iframe
192.168.0.23 refused to connect.
probably because home assistant is running at 8123 and bookstack over 2665?
how can I fix this?

hoary merlin
#

2 possible causes:
a) you are accessing HA via a https connections. Unsecure http webpages cannot be shown via a https connection.
b) the server does not allow iframe embedding

celest locust
#

it can't be "a" as I'm running over HTTP and I have tested as HTTPS too

how can I enable iframe embedding?

hoary merlin
#

It might be a setting in BookStack (I'm not using it). But others strictly don't allow it.

celest locust
#

I see, my url has this option:
http://192.168.0.23:2665/?iframe=true&theme=dark

hoary merlin
#

Is the IP address correct? And does that address show something in a usual browser?

celest locust
#

they are correct and the request responds OK although no data from response

#

I got it fixed by setting envvars trusting this URL

- name: ALLOWED_IFRAME_HOSTS
  value: http://192.168.0.23:8123
- name: SESSION_SECURE_COOKIE
  value: "true"```
hoary merlin
#

You still should not be able to see that iframe, when you access HA via a https connection.