# O Discourse recusou o carregamento com erro de política CSP após a reconstrução

**URL:** https://meta.discourse.org/t/discourse-refused-to-load-with-csp-policy-error-after-rebuild/117142
**Category:** Support
**Created:** [Maio 8, 2019, 1:40am UTC](https://meta.discourse.org/t/discourse-refused-to-load-with-csp-policy-error-after-rebuild/117142 "2019-05-08T01:40:03Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![john3](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@john3](https://meta.discourse.org/u/john3)
#### Post date: [Maio 8, 2019, 1:40am UTC](https://meta.discourse.org/t/discourse-refused-to-load-with-csp-policy-error-after-rebuild/117142/1 "2019-05-08T01:40:03Z")

</div>

Hi,

I just upgraded discourse and reinstalled with “tests-passed” as “stable” was giving me mini\_racer error. After installation, I am getting a blank page and log shows the following error.

`Refused to load https://www.domain.com/community/assets/browser-update-1741a2ed67a367faeb0a582af064457e8b1b1354e52e6efcf8bf26301166dec8.js because it does not appear in the script-src directive of the Content Security Policy.`

However, I don’t think if I have enabled CSP in the server configuration.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [Maio 8, 2019, 3:47am UTC](https://meta.discourse.org/t/discourse-refused-to-load-with-csp-policy-error-after-rebuild/117142/2 "2019-05-08T03:47:34Z")

</div>

There were some changes to the csp stuff lately. How long has it been since your last upgrade?

You might need to modify those site settings at the rails console.

---

<div class="post-metadata">

### Author: ![john3](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@john3](https://meta.discourse.org/u/john3)
#### Post date: [Maio 8, 2019, 3:50am UTC](https://meta.discourse.org/t/discourse-refused-to-load-with-csp-policy-error-after-rebuild/117142/3 "2019-05-08T03:50:05Z")

</div>

well I am upgrading after several days or maybe 2-3 months I do not even remember…

However, I removed the images and installed from scratch but its still the same.

---

<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: [Maio 8, 2019, 4:13am UTC](https://meta.discourse.org/t/discourse-refused-to-load-with-csp-policy-error-after-rebuild/117142/4 "2019-05-08T04:13:34Z")

</div>

CSP is now on by default, but for some reason, your instance isn’t working right. You can disable CSP temporarily by:

```plaintext
./launcher enter app
rails c

```

and then in the rails console

```plaintext
SiteSetting.content_security_policy = false

```

---

<div class="post-metadata">

### Author: ![john3](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@john3](https://meta.discourse.org/u/john3)
#### Post date: [Maio 8, 2019, 4:34am UTC](https://meta.discourse.org/t/discourse-refused-to-load-with-csp-policy-error-after-rebuild/117142/5 "2019-05-08T04:34:42Z")

</div>

yes its working now. Thank you. When will stable release be available? I mean currently its giving me mini racer error.

Update: Now I am unable to restore the previous backup which I made on stable release, but this time as stable is giving error so I am using tests-passed.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [Setembro 5, 2022, 2:42pm UTC](https://meta.discourse.org/t/discourse-refused-to-load-with-csp-policy-error-after-rebuild/117142/7 "2022-09-05T14:42:49Z")

</div>


