I am facing this error my code is
<a href='https://accounts.google.com/o/oauth2/auth?
state=%2Fprofile&
client_id=524265562778.apps.googleusercontent.com&
redirect_uri=https://localhost/oauth2callback.html&
scope=https://gdata.youtube.com&
response_type=code&'>Login</a>
when i click on allow access the above error occurs
I think the url values should be urlencode.