'An anonymous request was received in between authentication handshake requests running .NET 6 WebApi locally in Visual Studio

I am starting up a new .NET 6 WebApi project. This is the first .NET 6 project in our company. I am starting just from the raw template with windows authentication set and swagger included. If I try this on a non work machine and have no issues. But on work machine I get a logon box, put in the correct credentials and get an exception containing: An anonymous request was received in between authentication handshake requests. I am familiar with this error on a deployed app on a server (wrong binding and SPN setup etc) but have never experienced it on local machine and have developed on this machine in previously .NET versions (including .NET5) without issue. This occurs whether I use the inbuilt kestril or IIS express and from Edge or IE

Our internet settings etc are all locked down by the security team and there are no recent changes to this reported).

Has anyone experienced this or get any ideas?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source