Unable to sign in cosine extension "The site you are signing in to is not hosted by Microsoft. Do you want to continue?"

The site you are signing in to is not hosted by Microsoft. Do you want to continue?

The URL you’re on looks like this: https://vscode.dev/redirect?state=cursor....

From the URL, you can copy everything that comes after state= and paste it into this URL Decoder: URL Decoder/Encoder. Click on Decode and open the new URL you get from the output in your browser. That should redirect you to Cursor and log you in.