bokub / home-assistant-extension

📌 Home Assistant browser extension
MIT License
171 stars 3 forks source link

Works great, but not on https:// #2

Closed jdeath closed 3 years ago

jdeath commented 3 years ago

Works great using my internal IP without SSL, but doesn't load using my external https address

bokub commented 3 years ago

I don't have this problem...

Can your right-click on the extension icon, click inspect, then check if there are errors in the console?

jdeath commented 3 years ago

hmm. Ok, I'll keep playing with it. I'm using Edge, not chrome. Maybe it is just me, using caddy reverse proxy. The extension is super cool.

On Fri, May 7, 2021 at 6:48 AM Boris K @.***> wrote:

I don't have this problem...

Can your right/click on the extension icon, inspect, then check if there are errors in the console?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bokub/home-assistant-extension/issues/2#issuecomment-834260554, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIVUAIPLGTWNJCCRLFF2WLTMPAPZANCNFSM44JQHWTQ .

bokub commented 3 years ago

Please go to this JSfiddle: https://jsfiddle.net/tpw63rsh/

Then, edit the src attribute and put the URL of your home assistant view

Finally, click the "Run" button.

Do you see your Home assistant?

jdeath commented 3 years ago

Must be caddy. I see nothing in the jsfiddle ( %3Cyour-home-assistant.com%3E’s server IP address could not be found.) and get the same behavior in Chrome. I don't know how to get to the header view you showed, but remember putting something in my caddy that prevents iframes. It was recommended for security reasons. Tried removing it and no change. Something with my DNS could be messed up, it happens sometimes..

I'll keep playing with it, but for now I'll just use internal IP address. Good enough for me.

On Fri, May 7, 2021 at 9:30 AM Boris K @.***> wrote:

Please go to this JSfiddle: https://jsfiddle.net/tpw63rsh/

Then, edit the src attribute and put the URL of your home assistant view

Finally, click the "Run" button.

Do you see your Home assistant?

  • Yes: Edge problem
  • No: Caddy problem

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bokub/home-assistant-extension/issues/2#issuecomment-834390098, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIVUAMCQ2BW6YJSJBWBYLTTMPTO7ANCNFSM44JQHWTQ .

bokub commented 3 years ago

%3Cyour-home-assistant.com%3E’s server IP address could not be found.

Are you sure you edited the src in the jsFiddle? :smile:

remember putting something in my caddy that prevents iframes

What could prevent the iframe from working would be this header: X-Frame-Options: DENY

rawzone commented 3 years ago

Just to tip in with some info - HTTPS works great for me.

I'm hitting a traefik (proxy) -> HA (hosted on a Kubernetes cluster) via SSL and works perfectly.

jdeath commented 3 years ago

Sorry for the wild goose chase. It must have been a DNS error. After rebooting everything, SSL works with the extension for me.

On Fri, May 7, 2021 at 11:18 AM Hans Nielsen @.***> wrote:

Just to tip in with some info - HTTPS works great for me.

I'm hitting a traefik (proxy) -> HA (hosted on a Kubernetes cluster) via SSL and works perfectly.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/bokub/home-assistant-extension/issues/2#issuecomment-834513573, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEIVUAOT5L7KOOYL2XEY3VTTMQAFJANCNFSM44JQHWTQ .