Service Worker Error in 2.3.0-0

I upgraded my Proxmox LXC / bare metal installation yesterday to SilverBullet 2.3.0-0-g21ddcb4.
Since then, I noticed the encryption option on the login screen. But when I tick it, I get an error and cannot login. The error says no service worker is running.
So I unclick it and then I can login. Immediately, I get the following errors showing up:

Error: Failed to register a ServiceWorker for scope (‘site/’) with script (‘https://site/service_worker.js’): The script resource is behind a redirect, which is disallowed.

Also, when I do certain functions (like complete a ToDo on a query ToDo table), I get a different version of the same error:

Error: No active service worker to post message to"

Any ideas on how to fix?

I use authentication (not Authentik, not Cloudflare) but found this: Silverbullet with oauth2-proxy · Issue #1667 · silverbulletmd/silverbullet · GitHub

By allowing the serviceworker.js through always, the error goes away. And I can re-login with the encryption.

Is there any risk to exposing the service worker javascript?

Yes if you use your own auth layer you have to expose service_worker.js and I’d recommend .client/* (these are the client assets) as well without auth. There is no security risk in this.