Visual Studio 2022 Error - There was a problem adding your GitHub account. Your default web browser might be using HSTS for localhost.
Good day!
Cheers!
I was about to publish one of my .NET 7 console application to GitHub using Visual Studio 2022. And when adding my account, an error occured which states that "There was a problem adding your GitHub account. Your default web browser might be using HSTS for localhost.".
After doing some research, I found this post Disabling HSTS for localhost on Chromium-based browsers which fixed the problem for MS Edge or Google Chrome Browsers. First you need to type in the browser url "about://net-internals/#hsts" command to open the Domain Security Page of your browser where you can clear the HSTS. Under "Delete domain security policies" domain textbox, type in localhost and click the delete button.
After that, I have successfully added my GitHub account in Visual Studio 2022 and was able to publish my project.
Cheers!
Comments
Post a Comment