# Service-worker redirection 403

**URL:** <https://meta.discourse.org/t/service-worker-redirection-403/224096>\
**Category:** Self-hosting\
**Created:** [April 12, 2022, 9:41pm UTC](https://meta.discourse.org/t/service-worker-redirection-403/224096 "2022-04-12T21:41:25Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![satonotdead](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/satonotdead/32/447830_2.png) [@satonotdead](https://meta.discourse.org/u/satonotdead)\
**Post date:** [April 12, 2022, 9:41pm UTC](https://meta.discourse.org/t/service-worker-redirection-403/224096/1 "2022-04-12T21:41:25Z")

</div>

Hi, we are using Bunny CDN and see that error after last update (own hosted instance):

```plaintext
service-worker.js:1 Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'https://CDN/javascripts/workbox/workbox-sw.js' failed to load.
    at https://NOTCDN/service-worker.js:1:14
(anonymous) @ service-worker.js:1

```

Related issue here:

> [@Failed to register Service Worker: Security Error because of redirect](https://meta.discourse.org/t/failed-to-register-service-worker-security-error-because-of-redirect/191832):
>
> Since the latest update we get the following JS errors re Service Worker in Chrome: The script resource is behind a redirect, which is disallowed. \_application-786bec8dbeba5dccf3118668436791948e535eb587456944e94e0724bc417b14.js:76435 Failed to register Service Worker: SecurityError: Failed to register a ServiceWorker for scope ('https://www.xxxxx.com/') with script ('https://www.xxxxxx.com/service-worker.js'): The script resource is behind a redirect, which is disallowed. We host …

But rebuild app not work for us ☹

---

_[View the full topic](https://meta.discourse.org/t/service-worker-redirection-403/224096)._
