Static GitHub Issues

[824] issue with the offline plugin with CDN

prev: Middleware is not working in header component
next: About assets size limit

Hello,

I'm facing a problem with the offline plugin while hosting my assets in a CDN it's giving me this error.

Uncaught (in promise) DOMException: Failed to register a ServiceWorker: The origin of the provided scriptURL ('https://cdn.domain.com') does not match the current origin ('https://domain.com').

How can i fix that should we host the sw.js in the /static folder if so can we do that automatically ?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c707">#c707</a>)</em></sub></div>