Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • 1
    "Service workers are only available to "secure origins" (HTTPS sites, basically)...localhost is also considered a secure origin" from chromium.org/blink/serviceworker/service-worker-faq Commented Aug 13, 2019 at 16:49
  • 1
    I just checked to make sure and served this file over ngrok with https and I'm still seeing the same problem Commented Aug 13, 2019 at 16:56
  • Well TIL. What is the status code you receive when you fetch? Are you able to see the response when you directly navigate? Commented Aug 13, 2019 at 16:56
  • actually, status code was (failed) net::ERR_CONNECTION_REFUSED when over http and over https it is (failed) net::ERR_FAILED. I'm able to see the response with navigation or curl yes Commented Aug 13, 2019 at 17:00
  • Well I apologize. I attempted to recreate locally with both HTTPS and HTTP but I was unsuccessful. Commented Aug 13, 2019 at 17:21