bokub / home-assistant-extension

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

Extension not loading page #21

Closed Pizzarous closed 9 months ago

Pizzarous commented 9 months ago

It appears that my browser extension has ceased functioning properly following an update to Home Assistant. Despite configuring the 'use_x_frame_options' setting and even attempting to remove it altogether and reinstalling the extension, the issue persists.

Using the extension on Firefox. Here are my current Home Assistant versions:

Core: 2024.2.1
Supervisor: 2024.01.1
Operating System: 11.5
Frontend: 20240207.1

The extension now only displays the Home Assistant logo without any errors appearing in the extension console debug. I've also attempted a reset and tried accessing multiple dashboards, to no avail. image

Could you offer any suggestions or assistance with resolving this issue?

dapuzz commented 9 months ago

Same happening here. In the console the error says: Blocked a frame with origin "https://xxxxxxx.duckdns.org" from accessing a cross-origin frame.

Is that the same with you?

Pizzarous commented 9 months ago

Same happening here. In the console the error says: Blocked a frame with origin "https://xxxxxxx.duckdns.org" from accessing a cross-origin frame.

Is that the same with you?

Hey, actually nothing on console for me, no errors or warnings, only a [HTTP/1.1 200 OK 18ms] under Requests

QuadrifoglioVerde commented 9 months ago

Same here, found this: https://github.com/home-assistant/frontend/issues/19724

bokub commented 9 months ago

Same here, found this: https://github.com/home-assistant/frontend/issues/19724

Good find, thanks !

RizzleQ commented 9 months ago

@bokub Looks like the solution is to add name="ha-main-window" to the iframe as per https://github.com/home-assistant/frontend/issues/19724#issuecomment-1946387556

Is that something you're able to edit in your extension?

bokub commented 9 months ago

Sure !

Can you please uninstall your browser extension, unzip the following file, install the .crx extension on chrome, and confirm it solves your problem ?

If yes, I'll submit it to stores monday

home-assistant-extension.zip

P.S: here is a tutorial to install the .crx:

image

Pizzarous commented 9 months ago

If you could get me one for Firefox I can test it too !

bokub commented 9 months ago

Not sure it will work, but here is the version for Firefox:

home-assistant-extension-firefox.zip

Pizzarous commented 9 months ago

Not sure it will work, but here is the version for Firefox:

home-assistant-extension-firefox.zip

you're right doesn't allow me to install unverified add ons on Firefox. But regardless of that, I installed chrome and tested that new version and everything seems to be working OK! at least on my personal usage

image

RizzleQ commented 9 months ago

Sure !

Can you please uninstall your browser extension, unzip the following file, install the .crx extension on chrome, and confirm it solves your problem ?

If yes, I'll submit it to stores monday

home-assistant-extension.zip

P.S: here is a tutorial to install the .crx:

image

Unfortunately, I get this error:

2024-02-16_11_29_57

Edit: If I convert that .crx file to .zip and unzip it, I can load the extension unpacked and it does solve the problem.

rwbronco commented 9 months ago

Tried the Chrome extension linked above by author - still doesn't fix it for me. Getting "Refused to connect" message.

Mac Ventura 13.4 Chrome Version 122.0.6261.57

bokub commented 9 months ago

Hello

I just submitted a new version to the chrome web store and the Firefox add-ons store.

Could everyone please test and tell me if the issue is fixed? (make sure you install the version 0.5.0)

Thanks

QuadrifoglioVerde commented 9 months ago

For me, works fine! (chrome)

royto commented 9 months ago

same for me on Firefox.

Thanks !!

Pizzarous commented 9 months ago

it works great now thanks!