3

I am getting error SecurityError: The operation is insecure. while displaying image using Base64. I already applied Sanitize as below then also I am getting the error.

constructor(private _sanitizer: DomSanitizer) { }
    transform(v: string) {
        return this._sanitizer.bypassSecurityTrustResourceUrl(v);
    }
Jeeten Parmar
  • 5,568
  • 15
  • 62
  • 111

0 Answers0