【问题标题】:Youtube api oAuth 400 origin mismatchYoutube api oAuth 400 来源不匹配
【发布时间】:2015-12-11 07:45:53
【问题描述】:

我使用 JS youtube api 并尝试在以下位置上传视频 http://newauto46.ru/youtube/upload_video.html 然后在开发人员控制台上配置了原始 url。 现在我有 400 来源不匹配错误 请求详情

=
proxy=oauth2relay538900249
scope=https://www.googleapis.com/auth/youtube.upload https://www.googleapis.com/auth/youtube
origin=http://newauto46.ru
response_type=code token id_token gsession
redirect_uri=postmessage
state=678581604|0.3528401798
pageId=106287838926302036687
client_id=1034451067661-h7v9fipq91k83log7c47f49l1o257rl4.apps.googleusercontent.com
cookie_policy=single_host_origin
include_granted_scopes=true

我能用它做什么?

【问题讨论】:

    标签: youtube-api youtube-data-api youtube-javascript-api


    【解决方案1】:

    问题解决了。我忘了您需要将 client_id 粘贴到 auth.js 和 upload_video.html

    【讨论】:

      猜你喜欢
      • 2016-06-11
      • 2012-11-06
      • 2017-05-01
      • 2017-03-10
      • 2011-10-07
      • 2015-04-30
      • 2014-05-05
      • 1970-01-01
      • 2019-06-21
      相关资源
      最近更新 更多