jimmywarting / StreamSaver.js

StreamSaver writes stream to the filesystem directly asynchronous
https://jimmywarting.github.io/StreamSaver.js/example.html
MIT License
3.95k stars 413 forks source link

How Do I Modify sw.js to Avoid SSL Certificate Verification? #342

Open mn18829031589 opened 3 months ago

mn18829031589 commented 3 months ago

image How Do I Modify sw.js to Avoid SSL Certificate Verification?

malakutsko commented 3 months ago

This doesn't seem to be the issue of this project really, but I recently had the same problem when I needed to debug something locally, but on custom local.gd domain with self-signed certificate.

I tried a bunch of different things and I can't tell exactly what worked, because there seems to be some caching issue involved too:

  1. Launching chrome with the flag --unsafely-treat-insecure-origin-as-secure=http://your.insecure.site:8080. Or it's also possible to switch this on and off on the page chrome://flags/
  2. Launching chrome with flags --allow-insecure-localhost and --ignore-certificate-errors
  3. Temporarily switching to No protection in chrome://settings/security