madskristensen / WebEssentials.AspNetCore.ServiceWorker

Other
339 stars 61 forks source link

AllowHttp for no SSL connection on PwaOptions #73

Closed PaoloP98 closed 4 years ago

PaoloP98 commented 4 years ago

I want to test this package on localhost so, I register the service in Startup.cs: services.AddProgressiveWebApp(new PwaOptions { AllowHttp = true, RegisterServiceWorker = true }); But I get this error from console:

Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope ('https://localhost:5566/') with script ('https://localhost:5566/serviceworker'): An SSL certificate error occurred when fetching the script.