好吧,我已经尝试从google developer docs (specifically authorizing_requests)
运行youtube示例我在the google developer console
中创建了一个新项目 像这样:search.html
,my_uploads.html
继续加载的内容。或任何其他文件。拒绝显示' https://accounts.google.com/o/oauth2/auth?client_id=217603943332-cuo3i85935 ... angroup.com& response_type = token& state = 1069982666%7C0.2949761402& authuser = 0'在一个框架中因为它设置了X-Frame-Options'到#SAMEORIGIN'
我做错了什么?
答案 0 :(得分:0)
您无法在iframe中嵌入OAuth批准页面。在您的身份验证target="_parent"
链接上使用<a>
,以便在父窗口中打开该页面。