title: Register service worker without access to local files
body: <p>I'm attempting to build a PWA using Webflow, a web development tool. It is a web design platform, and it also manages hosting. It allows me to embed code into <code>&lt;head&gt;</code> or after the document, but it doesn't allow me to add any files to the server. I'm using a <code>data:</code> url to add a manifest file, which is working well. However, I'm finding it difficult to add a service worker. </p>
  
  <p>I tried hosting the <code>service-worker.js</code> file on another server, and used <code>navigator.serviceWorker.register('url_of_sw.js')</code> but it gives me an origin error: <code>ServiceWorker registration failed:  DOMException: Failed to register a ServiceWorker: The origin of the provided scriptURL ('script_url') does not match the current origin ('site_url').</code></p>
  
  <p>I tried a <code>data:</code> url by using <code>navigator.serviceWorker.register('data:encoded_data')</code> and it says that the protocol is not supported.</p>
  
  <p>Is there any way to register a service worker without access to the local filestore? I know I can do it if I have control of a subdomain by setting <code>document.domain</code>. I want to assume I cannot do this.</p>