sanderdw / hassio-addons

DSMR Reader Datalogger and Metabase Home Assistant Add-ons
https://community.home-assistant.io/search?q=%40sanderdw%20%23home-assistant-os
Other
53 stars 13 forks source link

DSMR configuration page not working through Ingress #95

Open 2xdehelft opened 1 month ago

2xdehelft commented 1 month ago

Gives this error:

Verboden (403) CSRF-verificatie mislukt. Aanvraag afgebroken.

U ziet deze melding, omdat deze HTTPS-website vereist dat uw webbrowser een ‘Referer header’ meestuurt, maar deze ontbreekt. Deze header is om veiligheidsredenen vereist om er zeker van te zijn dat uw browser niet door derden wordt gekaapt.

Als u ‘Referer’-headers in uw browser hebt uitgeschakeld, schakel deze dan weer in, op zijn minst voor deze website, of voor HTTPS-verbindingen, of voor ‘same-origin’-aanvragen.

Als u de tag gebruikt of de header ‘Referrer-Policy: no-referrer’ opneemt, verwijder deze dan. De CSRF-bescherming vereist de ‘Referer’-header voor strenge referer-controle. Als u bezorgd bent om privacy, gebruik dan alternatieven zoals <a rel="noreferrer" …> voor koppelingen naar websites van derden.

Meer informatie is beschikbaar met DEBUG=True.

Sorry for it being in dutch :-)

It's only the configuration page, were you need to login. After entering username password this error occurs. All other pages are working normal.

killabeenl commented 1 month ago

Same issue here

rboeters commented 1 month ago

For me as well but only if I access Home Assistant through my ddns domain name via https.

If I access Home Assistant via local ip then the DSMR configuration panel opens fine.

sanderdw commented 1 month ago

I verified the problem. I will add it on my to do list after my holiday. For now indeed like @rboeters is saying, use the configuration panel from the internal ip address.

Screenshot_20240515-094326

tonnie84 commented 3 weeks ago

For me as well but only if I access Home Assistant through my ddns domain name via https.

If I access Home Assistant via local ip then the DSMR configuration panel opens fine.

Unfortunately that is not a workaround for me, I get the same error on the internal IP and outside URL

the1rig commented 3 days ago

I'm running into the same issue, unfortunately the workaround does not work for me either.