标签: angular security sanitize
我在使用SecurityError: The operation is insecure.显示图片时收到错误Base64。我已经应用Sanitize,如下所示,我也收到错误。
SecurityError: The operation is insecure.
Base64
Sanitize
constructor(private _sanitizer: DomSanitizer) { } transform(v: string) { return this._sanitizer.bypassSecurityTrustResourceUrl(v); }