Turns out this is something to do with the fact that I was using Brave browser (see this q&a) launched by Visual Studio.
Using Brave against the app when not launched by VS seems fine.