For PWA, Service Worker for Publish instance on AEMaaCS not working | Community
Skip to main content
Level 4
March 29, 2022
Solved

For PWA, Service Worker for Publish instance on AEMaaCS not working

  • March 29, 2022
  • 2 replies
  • 1566 views

I have setup PWA for my site on AEMaaCS. On author, both my service worker and manifest files are being rendered. But when it comes to the case of publish instance, it shows the following error:
Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope ('publish-url') with script ('publish-url'): The script resource is behind a redirect, which is disallowed.

Due to this, the manifest file is also not working resulting into the error "Failed to load resource: the server responded with a status of 404 ()".

I have followed the same configurations on my local environment and it works fine. What can be the case for Cloud Environment?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by nikita24tailor

The problem has been solved. There was one point for configuration which was missed.

2 replies

kautuk_sahni
Community Manager
Community Manager
December 5, 2023

@preetpal_bindra @harwinder-singh @gaurav_sachdeva_ @dprakashraj @mayursatav @rohan_garg @aanchal-sikka Can you please review this unanswered question? Appreciate your thoughts on this.

Kautuk Sahni
MayurSatav
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 5, 2023

Sure @kautuk_sahni , let me check

MayurSatav
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 5, 2023

Hi @nikita24tailor ,

 

Could you please share service worker path and also share logs?

nikita24tailorAuthorAccepted solution
Level 4
December 5, 2023

The problem has been solved. There was one point for configuration which was missed.