Reputation: 18104
When using Atlassian's Sourcetree I try and and "Refresh OAuth Token" and I see this error:
This site can’t provide a secure connection
localhost sent an invalid response.
Try running Windows Network Diagnostics.
ERR_SSL_PROTOCOL_ERROR
Upvotes: 2
Views: 2849
Reputation: 31
Using Chrome I had this issue, my workaround for this was:
I'm on SourceTree version 3.3.8
Upvotes: 3
Reputation: 18104
The issue here is we were developing a website that sets the HSTS header such that all localhost requests now require HTTPS.
The work-around is to remove localhost from your domain security policies.
If Chrome is your browser, you can do that here: chrome://net-internals/#hsts
Under the heading Delete domain security policies enter localhost
in the 'domain' input and press delete
Now try and "Refresh OAuth Token" again.
Upvotes: 12