0

I ran into this error when using the library msw.

[MSW] Failed to register the Service Worker:
Failed to register a ServiceWorker for scope ('http://localhost:3000/') with script ('http://localhost/mockServiceWorker.js'): Operation has been aborted

enter image description here

An important thing is, if I use another browser or a different Chrome profile, it'll work just fine.

I tried clearing cache but that doesn't help. How to resolve this?

Loi Nguyen Huynh
  • 8,492
  • 2
  • 29
  • 52

1 Answers1

0

Go to chrome://flags/#allow-insecure-localhost, set "Allow invalid certificates for resources loaded from localhost" to Enabled.


I resolved the issue with this search:enter image description here

Loi Nguyen Huynh
  • 8,492
  • 2
  • 29
  • 52