云端硬盘共享弹出窗口无法打开 [英] Drive sharing popup won't open

查看:202
本文介绍了云端硬盘共享弹出窗口无法打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试在应用中整合云端硬盘共享弹出窗口,然后执行以下操作: https://developers.google.com/drive/manage-sharing#launching_the_google_drive_sharing_dialog_in_your_app



一切都运行良好,直到我有效地打开它。
几秒钟后,我收到一条错误消息:

控制台包含此错误:拒绝显示 https://drive.google.com/share?id=0BzH05IFzFfzuZWdXYzZPZHRkaUk&foreignServi ... tr.apps.googleusercontent.com& embedOrigin = http%3A%2F%2Fvideo.unishared.com',因为它将'X-Frame-Options'设置为'SAMEORIGIN'。



我想它是与此要求相关:启动对话框的页面的URL必须与为应用程序注册的打开URL相同。但在这里是这种情况。



我无法弄清楚这里有什么问题。
感谢您的帮助。

编辑



用户在不同的浏览器上报告了这个随机发生的问题。
它没有完全解决。

解决方案

确定我刚才知道我的实现出了什么问题。



我正在使用可在API控制台中找到您的客户端的App ID,API访问选项卡(类似于... apps.googleusercontent.com)



我刚刚在标题下方的云端硬盘SDK标签中找到了其他ID。当使用它弹出终于显示!


I'm trying to integrate the "Drive share" popup in my app, following this how-to: https://developers.google.com/drive/manage-sharing#launching_the_google_drive_sharing_dialog_in_your_app

Everything ran well, until I effectively open it. After few seconds I get an error message:

The console contain this error: "Refused to display 'https://drive.google.com/share?id=0BzH05IFzFfzuZWdXYzZPZHRkaUk&foreignServi…tr.apps.googleusercontent.com&embedOrigin=http%3A%2F%2Fvideo.unishared.com' in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'. "

I suppose that it's related to this requirement: "The URL of the page that launches the dialog must have the same origin as the Open URL registered for the app." but here this is the case.

I can't figure out what's wrong here. Thanks for your help.

EDIT

Some of ours users had reported this issue which is happening randomly, on different browsers. It is not fully solved.

解决方案

Ok I've just figured out what was wrong with my implementation.

I was using the App ID that you can find for your client in API console, "API access" tab (something like ...apps.googleusercontent.com)

I've just found an other id in the "Drive SDK" tab, just below the title. When using it the popup finally show up!

这篇关于云端硬盘共享弹出窗口无法打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆