title: In production, zxing/ngx-scanner works in Safari but not in Chrome
body: <p><strong>The bug</strong>
  Despite using HTTPS, Chrome fails to open the zxing/ngx-scanner and receives this error upon attempting to do so: <code>@zxing/ngx-scanner Error when asking for permission. DOMException: Permission denied.</code>
  However, it works perfectly in Safari. Safari asks if the camera can be accessed, and upon giving it permission, all works well.</p>
  
  <p>I've used boilerplate <code>zxing</code> code from Stackblitz, this <a href="https://github.com/zxing-js/ngx-scanner" rel="nofollow noreferrer">repo's</a> documentation, and elsewhere, e.g. <code>&lt;zxing-scanner&gt;&lt;/zxing-scanner&gt;</code> in an Angular 8 component.html. Even plain <code>&lt;zxing-scanner&gt;&lt;/zxing-scanner&gt;</code> and nothing else produces this behavior. </p>
  
  <p><strong>To Reproduce</strong>
  Steps to reproduce the behavior:
  1. <code>npm i @zxing/ngx-scanner</code>
  2. In an Angular 8 project, go to a page with <code>&lt;zxing-scanner&gt;&lt;/zxing-scanner&gt;</code> in the component.html while in an HTTPS production environment (e.g. deployed to Heroku).
  3. No permission will be asked to access the camera in Chrome.
  4. Therefore, the scanner won't open, and the console will display the above error.
  5. Go to the same page in Safari. The browser asks for permission to access the camera, and the scanner works perfectly.</p>
  
  <p><strong>Expected behavior</strong>
  The scanner works for all browsers, including Chrome, while in production.</p>
  
  <p><strong>Versions</strong></p>
  
  <ul>
  <li>OS: Mac 10.14.6</li>
  <li>Browser: Chrome: 78.0.3904.97</li>
  <li>Version: @zxing/ngx-scanner 2.0.1</li>
  <li>Angular 8</li>
  </ul>
  
  <p><strong>Additional context</strong></p>
  
  <ul>
  <li>On localhost, everything works great on both Chrome and Safari.</li>
  <li>Chrome security settings does not show the prod site listed as a security exception.</li>
  <li>Visiting other people's zxing-scanner pages, e.g. on Stack blitz, while in Chrome shows that the scanner is asking permission as expected and everything is working perfectly. When reproducing the same code in my environment, scanner does not work and gives the above error.</li>
  <li>If it didn't work in Safari, I'd think that the problem is with my environment because all signs point to that...but it works in Safari. Perhaps there's something about Safari's security that allows this, but even upon disabling Chrome security as per <a href="https://stackoverflow.com/questions/34197653/getusermedia-in-chrome-47-without-using-https/34198101#34198101">this post</a>, the same error occurs.</li>
  <li>I'm also using a service-worker (via WorkboxPlugin) for offline access via local caching. I excluded the scanner page and it still does not work.</li>
  </ul>