如何阅读所有谷歌政策?有没有被谷歌曝光的API



假设我们有url"https://policies.google.com/?hl=en-US";我想让谷歌的政策更新实时到我的.这是有任何谷歌API存在吗?通过它我可以从策略中提取数据。

创建一个自定义安全管道,将其导入到您的应用程序模块,然后在组件中推送iframe源,当它准备好时,它应该会呈现它。一些网站存在跨源错误,因此可能会放置沙箱属性。

组件.ts

@Pipe({ name: 'safe' })
export class SafePipe implements PipeTransform {
constructor(private sanitizer: DomSanitizer) {}
transform(url:any) {
return this.sanitizer.bypassSecurityTrustResourceUrl(url);
}
}
safeURL: BehaviorSubject<string> = new BehaviorSubject(null);

组件.html

<iframe  [src]="(safeURL | async | safe)"> </iframe>

最新更新