I am using Browsersync in a .NET application. I only have iis installed with Windows authentication (anonymous authentication is disabled). I get 402.1. Of course, I can enable anonymity, and it will load the page, but I will be anonymous, which is not the desired result. I'm not quite sure what parameters to set in Browsersync so that this work works in Windows authentication mode.
I use below and think this is due to incorrect headers.
browserSync.init({ proxy: { target: 'http://localhost:4300', reqHeaders: { "host": config.urlObj.host, "accept-encoding": "identity", "agent": false } } });
authentication windows browser-sync
rkever
source share