Youtube Data API 集成存在问题

Issue with Youtube Data API integration

本文关键字:存在 问题 集成 API Data Youtube      更新时间:2023-09-26

我想在我的应用程序中集成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 与其他配置冲突。