Donate

Visual Studio 2022 Error - There was a problem adding your GitHub account. Your default web browser might be using HSTS for localhost.

Good day!

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.".
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.
There was a problem adding your GitHub account. Your default web browser might be using HSTS for localhost.
After that, I have successfully added my GitHub account in Visual Studio 2022 and was able to publish my project.
There was a problem adding your GitHub account. Your default web browser might be using HSTS for localhost.


Cheers!

Comments

Donate

Popular Posts From This Blog

WPF CRUD Application Using DataGrid, MVVM Pattern, Entity Framework, And C#.NET

How To Insert Or Add Emojis In Microsoft Teams Status Message

TypeScript Error Or Bug: The term 'tsc' is not recognized as the name of a cmdlet, function, script file, or operable program.