• Resolved blooming7

    (@blooming7)


    Service worker registration failed with: TypeError: Failed to register a ServiceWorker for scope
    A bad HTTP response code (403) was received when fetching the script.

    This is the error that is being generated on Service workers page, ng-sw.json file is being rendered on dev server but with wrong date stamp.
    01/01/1970 05:30 am.

    Can anyone please help how to resolve this?
    This is working fine on http-server run on local dist folder but creates an error when it is deployed on dev-server.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author SuperPWA

    (@superpwa)

    Can you please share the website URL?

    Thread Starter blooming7

    (@blooming7)

    Thanks for the quick response.
    It got resolved.
    Sorry Couldn’t share the url because of company url.
    Can you please guide on how to specify a private api url in the ngsw.json folder

    Plugin Author SuperPWA

    (@superpwa)

    Glad to hear the issue has been resolved. I’m changing this topic’s status as resolved. If you have any other queries or the issue, please create a new topic.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Service worker registration failed on dev server’ is closed to new replies.