【发布时间】:2015-08-16 20:48:22
【问题描述】:
使用 gapi 的分享功能时出错。
在 drive_sdk 中打开 Url:
该页面也在谷歌搜索控制台中被验证为:
docswriter.com
js中的分享功能:
factory.share = function(fileid) {
var appid = '***********'; //Using App ID from Drive UI Integration
var init = function() {
var s = new gapi.drive.share.ShareClient(appid);
s.setItemIds([fileid]);
s.showSettingsDialog();
}
gapi.load('drive-share', init);
};
错误:
拒绝显示 'https://drive.google.com/sharing/share?id=10RAw2XV2n3qizC237Z_HoXcbeeWeuEDS…ient=postMessage&appId=***********&embedOrigin=http%3A%2F%2Fdocswriter.com' 在一个框架中,因为它将“X-Frame-Options”设置为“SAMEORIGIN”。
【问题讨论】:
标签: google-drive-api share google-api-js-client