title: Angular 9 domSanitazer Not allowed to load resource
body: <p>I have application in Angular 9 and use DomSanitazer to build img url.
  I get error:</p>
  <pre><code>Not allowed to load local resource: file:///C:/MyApp/Images/uploads/fbf8152f-ccea-45a2-b9a9-150cd4c421a5/mmm_3424.png
  </code></pre>
  <p>In component.ts I have:</p>
  <pre><code>import {
    SafeResourceUrl,
    DomSanitizer
  } from '@angular/platform-browser';
  
    public avatarSafeFileUrl: SafeResourceUrl;
  </code></pre>
  <p>and when I load img:</p>
  <pre><code>this.avatarSafeFileUrl = this.domSanitizer.bypassSecurityTrustResourceUrl(this.myAvatar.filePath);
  </code></pre>
  <p>In html I have:</p>
  <pre><code>&lt;img [src]=&quot;avatarSafeFileUrl&quot;  /&gt;
  </code></pre>
  <p>And I get error like above.</p>