Description
Describe the bug
Blazor's debug proxy runs as a separate process launched from the web app. When running behind IIS out-of-proc it inherits all of the environment variables from IIS/ANCM which causes it to think it is the one responsible for handling requests proxied from IIS. It also ends up with the wrong content root and other such config. Removing ConfigureWebHostDefaults or UseIISIntegration doesn't help because IIS sets the HOSTINGSTARTUPASSEMBLIES environment variable to inject itself (maybe that was a bad idea...).
The debug proxy app needs full control over its configuration and thus needs a way to suppress any config coming from environment variables. That's not possible today because the env var config provider is added by default.
Proposal
Add a way that allows the caller of ConfiureWebHost and/or ConfigureWebHostDefaults to opt out of the environment variable config source.