1. Declare the service worker path
Let's say you can only upload the batchsdk-worker-loader.js file in the media folder of your website, the path to this file will be: https://mywebsite.com/media/batchsdk-worker-loader.js.
You need to indicate that the Service Worker is not at the root of the website, and declare its path. The parameter serviceWorkerPathOverride is made for this.
You will need to add the following line to your tag's configuration:
2. Check your server's configuration
The server needs to get a success response with GET and OPTIONS methods.
The Service-Worker-Allowed header with the value " /" has to be served. Otherwise, you will need to add it.
You can test it as below, from the terminal, with httpie for example (test with the service worker path).