Answers for "core.js:4197 ERROR Error: Uncaught (in promise): Error: Required a safe URL, got a HTML (see http://g.co/ng/security#xss) Error: Required a safe URL, got a HTML (see http://g.co/ng/security#xss)"

2

unsafe value used in a resource URL context

transform(url) {
    return this.sanitizer.bypassSecurityTrustResourceUrl(url);
  }
Posted by: Guest on June-04-2020

Code answers related to "core.js:4197 ERROR Error: Uncaught (in promise): Error: Required a safe URL, got a HTML (see http://g.co/ng/security#xss) Error: Required a safe URL, got a HTML (see http://g.co/ng/security#xss)"

Code answers related to "Javascript"

Browse Popular Code Answers by Language