Traefik as frontend for Home Assistant gives error 400: Bad Request

Hi!

I'm getting lost, I can't make it work.
Two hosts: first ha.mydomain with Home Assistant working in http mode on port 8124.
Second www.mydomain with Traefik docker.
All time getting: 400: Bad Request

Could anybody help, please?

Config files:

docker-compose.yml

version: "3.7"

services:
  traefik:
    image: "traefik:latest"
    ports:
      - "8123:443"
      - "88:8"
      - "8080:8080"
    volumes:
      - "/var/run/docker.sock:/var/run/docker.sock:ro"
      - "/usr/share/traefik:/etc/traefik/"

traefik.yml

entryPoints:
  traefik:
    address: :8080
  websecure:
    address: :443
  web:
    address: :80
    http:
      redirections:
        entryPoint:
          to: websecure
          scheme: https

ping: {}


providers:
  file:
    directory: /etc/traefik

api:
  dashboard: true
  insecure: true

log:
  level: DEBUG

dynamic.yml

ttls:
  certificates:
    - certFile: "/etc/traefik/fullchain.pem"
      keyFile: "/etc/traefik/privkey.pem"
      stores:
        - default
  stores:
    default:
      defaultCertificate:
        certFile: "/etc/traefik/fullchain.pem"
        keyFile: "/etc/traefik/privkey.pem"
  options:
    default:
      minVersion: VersionTLS13
      sniStrict: true

http:
  middlewares:
    secHeaders:
      headers:
        browserXssFilter: true
        contentTypeNosniff: true
        frameDeny: true
        sslRedirect: true
        stsIncludeSubdomains: true
        stsPreload: true
        stsSeconds: 31536000
        customFrameOptionsValue: SAMEORIGIN

  routers:

    homeAssistantRouter:
      rule: "Host(`www.mydomain`)"
      entryPoints: ["websecure"]
      tls: {}
      service: homeAssistantService

  services:
    homeAssistantService:
      loadBalancer:
        servers:
          - url: "http://192.168.0.5:8124"

log:

time="2022-04-04T17:34:52Z" level=info msg="Configuration loaded from file: /etc/traefik/traefik.yml"
time="2022-04-04T17:34:52Z" level=info msg="Traefik version 2.6.3 built on 2022-03-29T13:09:27Z"
time="2022-04-04T17:34:52Z" level=debug msg="Static configuration loaded {\"global\":{\"checkNewVersion\":true},\"serversTransport\":{\"maxIdleConnsPerHost\":200},\"entryPoints\":{\"traefik\":{\"address\":\":8080\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{},\"udp\":{\"timeout\":\"3s\"}},\"web\":{\"address\":\":80\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{\"redirections\":{\"entryPoint\":{\"to\":\"websecure\",\"scheme\":\"https\",\"permanent\":true,\"priority\":2147483646}}},\"udp\":{\"timeout\":\"3s\"}},\"websecure\":{\"address\":\":443\",\"transport\":{\"lifeCycle\":{\"graceTimeOut\":\"10s\"},\"respondingTimeouts\":{\"idleTimeout\":\"3m0s\"}},\"forwardedHeaders\":{},\"http\":{},\"udp\":{\"timeout\":\"3s\"}}},\"providers\":{\"providersThrottleDuration\":\"2s\",\"file\":{\"directory\":\"/etc/traefik\",\"watch\":true}},\"api\":{\"insecure\":true,\"dashboard\":true},\"ping\":{\"entryPoint\":\"traefik\",\"terminatingStatusCode\":503},\"log\":{\"level\":\"DEBUG\",\"format\":\"common\"},\"pilot\":{\"dashboard\":true}}"
time="2022-04-04T17:34:52Z" level=info msg="\nStats collection is disabled.\nHelp us improve Traefik by turning this feature on :)\nMore details on: https://doc.traefik.io/traefik/contributing/data-collection/\n"
time="2022-04-04T17:34:52Z" level=info msg="Starting provider aggregator.ProviderAggregator"
time="2022-04-04T17:34:52Z" level=debug msg="Start TCP Server" entryPointName=traefik
time="2022-04-04T17:34:52Z" level=debug msg="Start TCP Server" entryPointName=web
time="2022-04-04T17:34:52Z" level=debug msg="Start TCP Server" entryPointName=websecure
time="2022-04-04T17:34:52Z" level=info msg="Starting provider *file.Provider"
time="2022-04-04T17:34:52Z" level=debug msg="*file.Provider provider configuration: {\"directory\":\"/etc/traefik\",\"watch\":true}"
time="2022-04-04T17:34:52Z" level=info msg="Starting provider *traefik.Provider"
time="2022-04-04T17:34:52Z" level=debug msg="*traefik.Provider provider configuration: {}"
time="2022-04-04T17:34:52Z" level=info msg="Starting provider *acme.ChallengeTLSALPN"
time="2022-04-04T17:34:52Z" level=debug msg="*acme.ChallengeTLSALPN provider configuration: {\"Timeout\":4000000000}"
time="2022-04-04T17:34:52Z" level=debug msg="Configuration received from provider file: {\"http\":{\"routers\":{\"homeAssistantRouter\":{\"entryPoints\":[\"websecure\"],\"service\":\"homeAssistantService\",\"rule\":\"Host(`www.mydomain`)\",\"tls\":{}}},\"services\":{\"homeAssistantService\":{\"loadBalancer\":{\"servers\":[{\"url\":\"http://192.168.0.5:8124\"}],\"passHostHeader\":true}}},\"middlewares\":{\"secHeaders\":{\"headers\":{\"sslRedirect\":true,\"stsSeconds\":31536000,\"stsIncludeSubdomains\":true,\"stsPreload\":true,\"frameDeny\":true,\"customFrameOptionsValue\":\"SAMEORIGIN\",\"contentTypeNosniff\":true,\"browserXssFilter\":true}}}},\"tcp\":{},\"udp\":{},\"tls\":{\"options\":{\"default\":{\"minVersion\":\"VersionTLS13\",\"clientAuth\":{},\"sniStrict\":true,\"alpnProtocols\":[\"h2\",\"http/1.1\",\"acme-tls/1\"]}},\"stores\":{\"default\":{}}}}" providerName=file
time="2022-04-04T17:34:52Z" level=debug msg="Configuration received from provider internal: {\"http\":{\"routers\":{\"api\":{\"entryPoints\":[\"traefik\"],\"service\":\"api@internal\",\"rule\":\"PathPrefix(`/api`)\",\"priority\":2147483646},\"dashboard\":{\"entryPoints\":[\"traefik\"],\"middlewares\":[\"dashboard_redirect@internal\",\"dashboard_stripprefix@internal\"],\"service\":\"dashboard@internal\",\"rule\":\"PathPrefix(`/`)\",\"priority\":2147483645},\"ping\":{\"entryPoints\":[\"traefik\"],\"service\":\"ping@internal\",\"rule\":\"PathPrefix(`/ping`)\",\"priority\":2147483647},\"web-to-websecure\":{\"entryPoints\":[\"web\"],\"middlewares\":[\"redirect-web-to-websecure\"],\"service\":\"noop@internal\",\"rule\":\"HostRegexp(`{host:.+}`)\",\"priority\":2147483646}},\"services\":{\"api\":{},\"dashboard\":{},\"noop\":{},\"ping\":{}},\"middlewares\":{\"dashboard_redirect\":{\"redirectRegex\":{\"regex\":\"^(http:\\\\/\\\\/(\\\\[[\\\\w:.]+\\\\]|[\\\\w\\\\._-]+)(:\\\\d+)?)\\\\/$\",\"replacement\":\"${1}/dashboard/\",\"permanent\":true}},\"dashboard_stripprefix\":{\"stripPrefix\":{\"prefixes\":[\"/dashboard/\",\"/dashboard\"]}},\"redirect-web-to-websecure\":{\"redirectScheme\":{\"scheme\":\"https\",\"port\":\"443\",\"permanent\":true}}},\"serversTransports\":{\"default\":{\"maxIdleConnsPerHost\":200}}},\"tcp\":{},\"tls\":{}}" providerName=internal
time="2022-04-04T17:34:52Z" level=debug msg="Adding certificate for domain(s) *.mydomain"
time="2022-04-04T17:34:52Z" level=debug msg="Added outgoing tracing middleware noop@internal" entryPointName=web routerName=web-to-websecure@internal middlewareName=tracing middlewareType=TracingForwarder
time="2022-04-04T17:34:52Z" level=debug msg="Creating middleware" routerName=web-to-websecure@internal middlewareName=redirect-web-to-websecure@internal middlewareType=RedirectScheme entryPointName=web
time="2022-04-04T17:34:52Z" level=debug msg="Setting up redirection to https 443" entryPointName=web routerName=web-to-websecure@internal middlewareName=redirect-web-to-websecure@internal middlewareType=RedirectScheme
time="2022-04-04T17:34:52Z" level=debug msg="Adding tracing to middleware" routerName=web-to-websecure@internal middlewareName=redirect-web-to-websecure@internal entryPointName=web
time="2022-04-04T17:34:52Z" level=debug msg="Creating middleware" entryPointName=web middlewareType=Recovery middlewareName=traefik-internal-recovery
time="2022-04-04T17:34:52Z" level=debug msg="Added outgoing tracing middleware api@internal" entryPointName=traefik routerName=api@internal middlewareName=tracing middlewareType=TracingForwarder
time="2022-04-04T17:34:52Z" level=debug msg="Added outgoing tracing middleware dashboard@internal" entryPointName=traefik routerName=dashboard@internal middlewareName=tracing middlewareType=TracingForwarder
time="2022-04-04T17:34:52Z" level=debug msg="Creating middleware" middlewareType=StripPrefix entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_stripprefix@internal
time="2022-04-04T17:34:52Z" level=debug msg="Adding tracing to middleware" middlewareName=dashboard_stripprefix@internal routerName=dashboard@internal entryPointName=traefik
time="2022-04-04T17:34:52Z" level=debug msg="Creating middleware" entryPointName=traefik routerName=dashboard@internal middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex
time="2022-04-04T17:34:52Z" level=debug msg="Setting up redirection from ^(http:\\/\\/(\\[[\\w:.]+\\]|[\\w\\._-]+)(:\\d+)?)\\/$ to ${1}/dashboard/" middlewareName=dashboard_redirect@internal middlewareType=RedirectRegex entryPointName=traefik routerName=dashboard@internal
time="2022-04-04T17:34:52Z" level=debug msg="Adding tracing to middleware" middlewareName=dashboard_redirect@internal entryPointName=traefik routerName=dashboard@internal
time="2022-04-04T17:34:52Z" level=debug msg="Added outgoing tracing middleware ping@internal" routerName=ping@internal entryPointName=traefik middlewareType=TracingForwarder middlewareName=tracing
time="2022-04-04T17:34:52Z" level=debug msg="Creating middleware" entryPointName=traefik middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2022-04-04T17:34:52Z" level=debug msg="Creating middleware" entryPointName=websecure routerName=homeAssistantRouter@file serviceName=homeAssistantService middlewareName=pipelining middlewareType=Pipelining
time="2022-04-04T17:34:52Z" level=debug msg="Creating load-balancer" entryPointName=websecure routerName=homeAssistantRouter@file serviceName=homeAssistantService
time="2022-04-04T17:34:52Z" level=debug msg="Creating server 0 http://192.168.0.5:8124" entryPointName=websecure routerName=homeAssistantRouter@file serverName=0 serviceName=homeAssistantService
time="2022-04-04T17:34:52Z" level=debug msg="child http://192.168.0.5:8124 now UP"
time="2022-04-04T17:34:52Z" level=debug msg="Propagating new UP status"
time="2022-04-04T17:34:52Z" level=debug msg="Added outgoing tracing middleware homeAssistantService" middlewareName=tracing middlewareType=TracingForwarder entryPointName=websecure routerName=homeAssistantRouter@file
time="2022-04-04T17:34:52Z" level=debug msg="Creating middleware" entryPointName=websecure middlewareName=traefik-internal-recovery middlewareType=Recovery
time="2022-04-04T17:34:52Z" level=debug msg="Adding route for www.mydomain with TLS options default" entryPointName=websecure
time="2022-04-04T17:35:03Z" level=debug msg="vulcand/oxy/roundrobin/rr: begin ServeHttp on request" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\",\"RawFragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\"],\"Accept-Encoding\":[\"gzip, deflate, br\"],\"Accept-Language\":[\"pl,en;q=0.9,en-US;q=0.8\"],\"Cache-Control\":[\"max-age=0\"],\"Cookie\":[\"_ga=GA1.2.714421059.1548106780; redirect=1; testing=1; session_P443=.eJx9j11rgzAYhf_KyHUZ1cbWCbuwi4qDN8GSriQ3slaHidENP6im9L-v3VWvdnl4zgPnXFD-1ZV9hYKhG8sFylWBggt6OqIACRtisCmm9jQxHhvQhWJJ5ECSWspDTBuqGQ8nmggPdFWDlYa6YmJkp4SVlUzAEzaz0EQu47saeHSWJMTCjRvgeweImKlNPWjAobyoGQcPeKUloYrx9CwPGab63YiDNDLJZqnrJdXZSjZ7e8sT3Lc0-1sHXtF1gVRRtoMa5ufPcajyYf4pUdCOxjyQh3cn15jj4aO7m2Nfdvk_rC_7Xn23fzraRFsHR_7ax06M_e16S6I3Er8sV2uyCYkbousvFWht5Q.Xz1tfA.-ztaASPGKB3QY7rdVTu2TxJtYa4; .AspNetCore.Antiforgery.9TtSrW0hzOs=CfDJ8LeP9rFgnCdKrg_Ni7uVdBVug250579L4UTE38tibIYlVnf737-ETnEeBK8_dlFJdKCvyS9FHiACwlwG0VYYWTiHEsfVj2GFVW245VuLfZvsLSrT0y4iTIYP2McpdWnetpNTepclai69U2PPZ51cVFg; devices_show_more=0; PHPSESSID=p36cngvh9sht3l89qimvrklvff; _pk_id.1.1d16=d796abaf3439fbb6.1625819568.; session_P8882=.eJxljssKgzAQAP8lZynZvNefkU12FwWRovEgpf9eKfTU8wzDvMykuxyzGft-ymCmhc1oJEYkTq35ZBlqTTlmH7wlLQwIKjZCSIC5VMgFJIHlyNQoanUVAzl2oWkha9WDd4ouQObmc0ioCRLm1kKUKi0LklbEW5eid5IrsblHzkP27812rutgFpatL_160NnnqV9P-SM_-f0BATtBvA.YY4vTA.4tfCSHsLF7bWqhPfXVCSpXDvsfU; unifises=Xn4UWZbEdiMXRomdJLz91fCqzpw87zDN; csrf_token=um1MhumGTEPUE82366aBqIuoZvCkKzPx; sid=d904d278b4297293a08236efb386db16; _dd_s=logs=1\\u0026id=ef3b80af-ed08-4c2f-a9d8-175c018372b2\\u0026created=1649080720724\\u0026expire=1649094599688\"],\"Sec-Ch-Ua\":[\"\\\" Not A;Brand\\\";v=\\\"99\\\", \\\"Chromium\\\";v=\\\"99\\\", \\\"Google Chrome\\\";v=\\\"99\\\"\"],\"Sec-Ch-Ua-Mobile\":[\"?0\"],\"Sec-Ch-Ua-Platform\":[\"\\\"macOS\\\"\"],\"Sec-Fetch-Dest\":[\"document\"],\"Sec-Fetch-Mode\":[\"navigate\"],\"Sec-Fetch-Site\":[\"none\"],\"Sec-Fetch-User\":[\"?1\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36\"],\"X-Forwarded-Host\":[\"www.mydomain:8123\"],\"X-Forwarded-Port\":[\"8123\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"f3b2c57a7a76\"],\"X-Real-Ip\":[\"192.168.2.101\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"www.mydomain:8123\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"192.168.2.101:52666\",\"RequestURI\":\"/\",\"TLS\":null}"
time="2022-04-04T17:35:03Z" level=debug msg="vulcand/oxy/roundrobin/rr: Forwarding this request to URL" ForwardURL="http://192.168.0.5:8124" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\",\"RawFragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\"],\"Accept-Encoding\":[\"gzip, deflate, br\"],\"Accept-Language\":[\"pl,en;q=0.9,en-US;q=0.8\"],\"Cache-Control\":[\"max-age=0\"],\"Cookie\":[\"_ga=GA1.2.714421059.1548106780; redirect=1; testing=1; session_P443=.eJx9j11rgzAYhf_KyHUZ1cbWCbuwi4qDN8GSriQ3slaHidENP6im9L-v3VWvdnl4zgPnXFD-1ZV9hYKhG8sFylWBggt6OqIACRtisCmm9jQxHhvQhWJJ5ECSWspDTBuqGQ8nmggPdFWDlYa6YmJkp4SVlUzAEzaz0EQu47saeHSWJMTCjRvgeweImKlNPWjAobyoGQcPeKUloYrx9CwPGab63YiDNDLJZqnrJdXZSjZ7e8sT3Lc0-1sHXtF1gVRRtoMa5ufPcajyYf4pUdCOxjyQh3cn15jj4aO7m2Nfdvk_rC_7Xn23fzraRFsHR_7ax06M_e16S6I3Er8sV2uyCYkbousvFWht5Q.Xz1tfA.-ztaASPGKB3QY7rdVTu2TxJtYa4; .AspNetCore.Antiforgery.9TtSrW0hzOs=CfDJ8LeP9rFgnCdKrg_Ni7uVdBVug250579L4UTE38tibIYlVnf737-ETnEeBK8_dlFJdKCvyS9FHiACwlwG0VYYWTiHEsfVj2GFVW245VuLfZvsLSrT0y4iTIYP2McpdWnetpNTepclai69U2PPZ51cVFg; devices_show_more=0; PHPSESSID=p36cngvh9sht3l89qimvrklvff; _pk_id.1.1d16=d796abaf3439fbb6.1625819568.; session_P8882=.eJxljssKgzAQAP8lZynZvNefkU12FwWRovEgpf9eKfTU8wzDvMykuxyzGft-ymCmhc1oJEYkTq35ZBlqTTlmH7wlLQwIKjZCSIC5VMgFJIHlyNQoanUVAzl2oWkha9WDd4ouQObmc0ioCRLm1kKUKi0LklbEW5eid5IrsblHzkP27812rutgFpatL_160NnnqV9P-SM_-f0BATtBvA.YY4vTA.4tfCSHsLF7bWqhPfXVCSpXDvsfU; unifises=Xn4UWZbEdiMXRomdJLz91fCqzpw87zDN; csrf_token=um1MhumGTEPUE82366aBqIuoZvCkKzPx; sid=d904d278b4297293a08236efb386db16; _dd_s=logs=1\\u0026id=ef3b80af-ed08-4c2f-a9d8-175c018372b2\\u0026created=1649080720724\\u0026expire=1649094599688\"],\"Sec-Ch-Ua\":[\"\\\" Not A;Brand\\\";v=\\\"99\\\", \\\"Chromium\\\";v=\\\"99\\\", \\\"Google Chrome\\\";v=\\\"99\\\"\"],\"Sec-Ch-Ua-Mobile\":[\"?0\"],\"Sec-Ch-Ua-Platform\":[\"\\\"macOS\\\"\"],\"Sec-Fetch-Dest\":[\"document\"],\"Sec-Fetch-Mode\":[\"navigate\"],\"Sec-Fetch-Site\":[\"none\"],\"Sec-Fetch-User\":[\"?1\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36\"],\"X-Forwarded-Host\":[\"www.mydomain:8123\"],\"X-Forwarded-Port\":[\"8123\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"f3b2c57a7a76\"],\"X-Real-Ip\":[\"192.168.2.101\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"www.mydomain:8123\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"192.168.2.101:52666\",\"RequestURI\":\"/\",\"TLS\":null}"
time="2022-04-04T17:35:03Z" level=debug msg="vulcand/oxy/roundrobin/rr: completed ServeHttp on request" Request="{\"Method\":\"GET\",\"URL\":{\"Scheme\":\"\",\"Opaque\":\"\",\"User\":null,\"Host\":\"\",\"Path\":\"/\",\"RawPath\":\"\",\"ForceQuery\":false,\"RawQuery\":\"\",\"Fragment\":\"\",\"RawFragment\":\"\"},\"Proto\":\"HTTP/2.0\",\"ProtoMajor\":2,\"ProtoMinor\":0,\"Header\":{\"Accept\":[\"text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9\"],\"Accept-Encoding\":[\"gzip, deflate, br\"],\"Accept-Language\":[\"pl,en;q=0.9,en-US;q=0.8\"],\"Cache-Control\":[\"max-age=0\"],\"Cookie\":[\"_ga=GA1.2.714421059.1548106780; redirect=1; testing=1; session_P443=.eJx9j11rgzAYhf_KyHUZ1cbWCbuwi4qDN8GSriQ3slaHidENP6im9L-v3VWvdnl4zgPnXFD-1ZV9hYKhG8sFylWBggt6OqIACRtisCmm9jQxHhvQhWJJ5ECSWspDTBuqGQ8nmggPdFWDlYa6YmJkp4SVlUzAEzaz0EQu47saeHSWJMTCjRvgeweImKlNPWjAobyoGQcPeKUloYrx9CwPGab63YiDNDLJZqnrJdXZSjZ7e8sT3Lc0-1sHXtF1gVRRtoMa5ufPcajyYf4pUdCOxjyQh3cn15jj4aO7m2Nfdvk_rC_7Xn23fzraRFsHR_7ax06M_e16S6I3Er8sV2uyCYkbousvFWht5Q.Xz1tfA.-ztaASPGKB3QY7rdVTu2TxJtYa4; .AspNetCore.Antiforgery.9TtSrW0hzOs=CfDJ8LeP9rFgnCdKrg_Ni7uVdBVug250579L4UTE38tibIYlVnf737-ETnEeBK8_dlFJdKCvyS9FHiACwlwG0VYYWTiHEsfVj2GFVW245VuLfZvsLSrT0y4iTIYP2McpdWnetpNTepclai69U2PPZ51cVFg; devices_show_more=0; PHPSESSID=p36cngvh9sht3l89qimvrklvff; _pk_id.1.1d16=d796abaf3439fbb6.1625819568.; session_P8882=.eJxljssKgzAQAP8lZynZvNefkU12FwWRovEgpf9eKfTU8wzDvMykuxyzGft-ymCmhc1oJEYkTq35ZBlqTTlmH7wlLQwIKjZCSIC5VMgFJIHlyNQoanUVAzl2oWkha9WDd4ouQObmc0ioCRLm1kKUKi0LklbEW5eid5IrsblHzkP27812rutgFpatL_160NnnqV9P-SM_-f0BATtBvA.YY4vTA.4tfCSHsLF7bWqhPfXVCSpXDvsfU; unifises=Xn4UWZbEdiMXRomdJLz91fCqzpw87zDN; csrf_token=um1MhumGTEPUE82366aBqIuoZvCkKzPx; sid=d904d278b4297293a08236efb386db16; _dd_s=logs=1\\u0026id=ef3b80af-ed08-4c2f-a9d8-175c018372b2\\u0026created=1649080720724\\u0026expire=1649094599688\"],\"Sec-Ch-Ua\":[\"\\\" Not A;Brand\\\";v=\\\"99\\\", \\\"Chromium\\\";v=\\\"99\\\", \\\"Google Chrome\\\";v=\\\"99\\\"\"],\"Sec-Ch-Ua-Mobile\":[\"?0\"],\"Sec-Ch-Ua-Platform\":[\"\\\"macOS\\\"\"],\"Sec-Fetch-Dest\":[\"document\"],\"Sec-Fetch-Mode\":[\"navigate\"],\"Sec-Fetch-Site\":[\"none\"],\"Sec-Fetch-User\":[\"?1\"],\"Upgrade-Insecure-Requests\":[\"1\"],\"User-Agent\":[\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36\"],\"X-Forwarded-Host\":[\"www.mydomain:8123\"],\"X-Forwarded-Port\":[\"8123\"],\"X-Forwarded-Proto\":[\"https\"],\"X-Forwarded-Server\":[\"f3b2c57a7a76\"],\"X-Real-Ip\":[\"192.168.2.101\"]},\"ContentLength\":0,\"TransferEncoding\":null,\"Host\":\"www.mydomain:8123\",\"Form\":null,\"PostForm\":null,\"MultipartForm\":null,\"Trailer\":null,\"RemoteAddr\":\"192.168.2.101:52666\",\"RequestURI\":\"/\",\"TLS\":null}"

Sorry for bothering you, problem was on backend side.

@jsiemek can you please share the backend fix? I too am facing the same issue.

Edit: SOLVED - I had to add the incoming IP as a trusted proxy in HA configuration. See Home assistant (400 Bad Request) Docker + Proxy - Solution - Configuration - Home Assistant Community (home-assistant.io)

1 Like