我想将 Youtube Data API 集成到我的应用程序中。同理,引用以下链接,
https://github.com/youtube/api-samples并创建我的客户 ID 并尝试运行代码。
我正在使用 Javascript + HTML。运行代码时出现以下错误。
Load denied by X-Frame-Options: https://accounts.google.com/o/oauth2/auth?client_id=AIzaSyARXJSURlAnAm48f3uXok0rB7GrEGb3pLc&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fyoutube&immediate=true&include_granted_scopes=true&proxy=oauth2relay311121687&redirect_uri=postmessage&origin=http%3A%2F%2Flocalhost%3A8080&response_type=token&state=475509781%7C0.2158929842&authuser=0 does not permit cross-origin framing.
谁能建议我出了什么问题,我该如何解决。
最佳答案
尝试将您请求的 URL 分解到最低限度。也许有一个 GET 与其他配置冲突。
关于javascript - Youtube 数据 API 集成问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34990914/