r/VisualStudio • • Oct 20 '26

Visual Studio 2026 Browser Link Hot Reload fails with custom local domain

Since the September .NET SDK update, Browser Link no longer works for Hot Reload in Visual Studio 2026 Enterprise.

The injected Browser Link script returns a 403 error. The browser console indicates a cross-origin issue because Browser Link tries to connect to localhost:PORT while my application uses a custom local domain (myapplication.localhost). I have specific reasons for using this domain.

Hot Reload itself still works, but the browser no longer refreshes automatically after changes because Browser Link fails.

I found this article, which describes a similar issue and suggests setting DOTNET_WATCH_AUTO_RELOAD_WS_ORIGINS. However, that solution applies to dotnet watch. I use IIS Express for debugging, and the environment variable does not solve the problem.

Is there a way to configure Browser Link to work with a custom local domain when debugging with IIS Express?

2 Upvotes

2 comments sorted by

2

u/neat_klingon Oct 22 '26

We are reverting to 18.10 company wide, since Hot Reload is broken for all .NET products.

Guess they use copilot in the development for VS now, too, and it shows.

2

u/soundman32 Oct 20 '26

I've logged an error on the VS support site.  HotReload is basically broken after that update.  It looks like the language server isnt loading properly.