
An SSL certificate error occurred when fetching the script
本地使用serviceworker的时候https验证不通过可以设置chrome启动参数解决:
"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --user-data-dir=C:\ChromeTempFiles --unsafely-treat-insecure-origin-as-secure=https://zhidao.loocode.dev --allow-running-insecure-content --reduce-security-for-testing
上面https://zhidao.loocode.dev就是跳过验证的域名