In order for a cross-origin frame to use these feature, the Google Script HtmlService based frame must specify a Feature Policy which enables the feature for the frame. For example, to enable geolocation in an iframe the developer should be able to specify the iframe mode in scope of HtmlService.XFrameOptionsMode.ALLOWALL.This new feature requested in the apps script support blog. You can vote for it.