Youtube api 谷歌浏览器&x27;的本地主机连接尝试被拒绝

Youtube api 谷歌浏览器&x27;的本地主机连接尝试被拒绝,youtube-api,Youtube Api,我面临这个错误,我的代码是 <a href='https://accounts.google.com/o/oauth2/auth? state=%2Fprofile&amp; client_id=524265562778.apps.googleusercontent.com& redirect_uri=https://localhost/oauth2callback.html&a

我面临这个错误,我的代码是

<a href='https://accounts.google.com/o/oauth2/auth?
                state=%2Fprofile&amp;
                client_id=524265562778.apps.googleusercontent.com&
                redirect_uri=https://localhost/oauth2callback.html&
                scope=https://gdata.youtube.com&
                response_type=code&amp'>Login</a>


当我单击allow access时,出现上述错误

我认为url值应该是urlencode

我解决了。因为我在处理http,重定向uri是https,所以它不支持安全http