我使用gapi的共享功能得到错误。
在drive_sdk中打开网址:
该页面也在googles搜索控制台中验证为:
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'。