Hey Guys Anyone Used Service Workers here ? So As we know it works Either with localhost or domain with https , I tried to install Let'sEncrypt in my local computer and added a self Signed Certificate But Service Workers still doesn't work
Failed to load resource: net::ERR_INSECURE_RESPONSE
Uncaught (in promise) DOMException: Failed to register a ServiceWorker: An SSL certificate error occurred when fetching the script.
Any Idea how to fix this ?
You can use ngrok for secure https tunnel to redirect to localhost.
It will resolve the issue you are facing.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.