How to run an application on offline mode in windows chrome browser?

I see. I tried another approach with dynamically inject the DOM with the manifest needed and the service worker, but eventually ran into the same problem as described by @Mark_Lundin in this thread: [SOLVED] PlayCanvas to PWA

Here is my exception:

ServiceWorker registration failed: DOMException: Failed to register a ServiceWorker: The origin of the provided scriptURL (‘https://s3-eu-west-1.amazonaws.com’) does not match the current origin (‘https://playcanv.as’).

Guess that’s a dead end in this case then.