IIS URL Rewrite half working

Hey guys,

Been doing a lot of research, but think im stumped!

So trying to set this up properly and keep getting a “Unable to connect to Home Assistant.”

IIS URL rewrite settings are:

                <rule name="HassIO" patternSyntax="Wildcard" stopProcessing="true">
                    <match url="*" />
                    <conditions>
                        <add input="{HTTPS}" pattern="on" />
                        <add input="{HTTP_HOST}" pattern="homeio.domain.com" />
                    </conditions>
                    <action type="Rewrite" url="http://X.X.X.X:8123/{R:0}" />
                    <serverVariables>
                        <set name="HTTP_SEC_WEBSOCKET_EXTENSION" value="" />
                    </serverVariables>

If I log into hass via the IP, i’m getting a notification saying: Login attempt or request with invalid authentication from “mac address”

Ive also added:

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - x.x.x.x

To the config.yaml

Any ideas what needs to be changed?

Thanks in advance :slight_smile:

Ok, so no idea what’s going on here.

But by chance I tried logging in on my phone and that worked. But still cant log in though Chrome or Edge in windows.

Then tried my macbook and can log in though Safari, but not Chrome.

How do I report bugs?