# Admin upgrade page doesn't load with a CDN

**URL:** https://meta.discourse.org/t/admin-upgrade-page-doesnt-load-with-a-cdn/160213
**Category:** Support
**Created:** [August 8, 2020, 6:09pm UTC](https://meta.discourse.org/t/admin-upgrade-page-doesnt-load-with-a-cdn/160213 "2020-08-08T18:09:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Boost](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@Boost](https://meta.discourse.org/u/Boost)
#### Post date: [August 8, 2020, 6:09pm UTC](https://meta.discourse.org/t/admin-upgrade-page-doesnt-load-with-a-cdn/160213/1 "2020-08-08T18:09:34Z")

</div>

Continuing my issues after enabling a CDN and moving my site assets and uploads to S3 compatible storage, I noticed that the `/admin/upgrade` page doesn’t load because `MY_CDN/assets/docker-manager-app-07d06764ce8970a55a9e89aa092994a1691d4d67ece07e1dfd191354ff526af3.js` (and a few other files) is loaded from the main site CDN, but that isn’t included in CSP by default.

So I had to add: `MY_CDN/assets/` to the " content security policy script src" setting in discourse. Even though the option says “The current host and CDN are included by default” But after adding that manual entry the upgrade page is no longer blank. So it seems that the default list of stuff to put in the CSP doesn’t cover everything.

This is with discourse version 2.6.0.beta1( [232d277833](https://github.com/discourse/discourse/commits/232d277833c5e89aef1569b2167436b53f5747bb) )

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [August 8, 2020, 7:13pm UTC](https://meta.discourse.org/t/admin-upgrade-page-doesnt-load-with-a-cdn/160213/2 "2020-08-08T19:13:12Z")

</div>

How did you configure your CDN?

---

<div class="post-metadata">

### Author: ![Boost](https://avatars.discourse-cdn.com/v4/letter/b/8e8cbc/32.png) [@Boost](https://meta.discourse.org/u/Boost)
#### Post date: [August 8, 2020, 7:25pm UTC](https://meta.discourse.org/t/admin-upgrade-page-doesnt-load-with-a-cdn/160213/3 "2020-08-08T19:25:54Z")

</div>

My environment variables in app.yml:

> [@Custom emoji don't use CDN for S3 stored assets in a few pages](https://meta.discourse.org/t/custom-emoji-dont-use-cdn-for-s3-stored-assets-in-a-few-pages/159787/3):
>
> I did have a look at that thread, and as far as I can tell my configuration should be right: DISCOURSE\_CDN\_URL: https://thrivecommunity-cdn.b-cdn.net DISCOURSE\_USE\_S3: true DISCOURSE\_S3\_REGION: eu-central-1 DISCOURSE\_S3\_ENDPOINT: https://s3.eu-central-1.wasabisys.com DISCOURSE\_S3\_INSTALL\_CORS\_RULE: false DISCOURSE\_S3\_ACCESS\_KEY\_ID: aaaa DISCOURSE\_S3\_SECRET\_ACCESS\_KEY: aaaa DISCOURSE\_S3\_CDN\_URL: https://thrivecommunity-uploads.b-cdn.net DISCOURSE\_S3\_BUCKET: thrivecommunityforum…

In addition I have the assets upload hook from: [Configure an S3 compatible object storage provider for uploads](https://meta.discourse.org/t/using-object-storage-for-uploads-s3-clones/148916#configuration)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [November 4, 2020, 5:31pm UTC](https://meta.discourse.org/t/admin-upgrade-page-doesnt-load-with-a-cdn/160213/4 "2020-11-04T17:31:18Z")

</div>

This should be fixed now, more details in [Totally blank upgrades page - #20 by pmusaraj](https://meta.discourse.org/t/totally-blank-upgrades-page/167416/20)

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [November 5, 2020, 11:00pm UTC](https://meta.discourse.org/t/admin-upgrade-page-doesnt-load-with-a-cdn/160213/5 "2020-11-05T23:00:13Z")

</div>

This topic was automatically closed after 29 hours. New replies are no longer allowed.
