0

Google Apps ScriptのHTMLテンプレートを使用してGoogleマップを実行しています。 これは、全体のWebアプリは、以下を使用して作成のiFrame内に存在することを意味しますGoogle Apps iFrameでgetCurrentPositionは廃止されましたか?

function doGet(e) { 
 
    var template = HtmlService.createTemplateFromFile('index.html'); 
 
    template.action = ScriptApp.getService().getUrl(); 
 
    return template.evaluate().setTitle('Google Map on Apps Script').setFaviconUrl('https://developers.google.com/_static/907a9d4ef3/images/favicon.png').setXFrameOptionsMode(HtmlService.XFrameOptionsMode.ALLOWALL); 
 
}

これが問題の前にはなかったが、今getCurrentPositionはそうではないのiFrameのために無効にすることとしていますallow = "geolocation"属性を含めます。

Google Apps Script HTMLServiceで作成されたiFrameにこの属性を追加する方法を知っている人はいますか?おそらく.setXFrameOptionsModeに類似したものがありますか?私はここで何が欠けていますか?

​​...

答えて

関連する問題