# CSP設定を有効にした後、サイトが表示されません

**URL:** <https://meta.discourse.org/t/my-website-is-not-loading-after-turning-on-the-csp-settings/128587>\
**Category:** Product Support\
**Created:** [2019 年 9 月 14 日午後 4:58 UTC](https://meta.discourse.org/t/my-website-is-not-loading-after-turning-on-the-csp-settings/128587 "2019-09-14T16:58:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![xrav3nz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/xrav3nz/32/76894_2.png) [@xrav3nz](https://meta.discourse.org/u/xrav3nz)\
**Post date:** [2019 年 9 月 14 日午後 5:25 UTC](https://meta.discourse.org/t/my-website-is-not-loading-after-turning-on-the-csp-settings/128587/2 "2019-09-14T17:25:13Z")

</div>

サイトの SSH アクセスが必要で、以下のコマンドで Rails コンソールを開きます。

```bash
cd /var/discourse
./launcher enter app
rails c

```

次に、

```ruby
SiteSetting.content_security_policy_script_src = ""

```

を実行してください。これにより、CSP 設定がデフォルトにリセットされ、サイトにアクセスできるようになります。

---

_[View the full topic](https://meta.discourse.org/t/my-website-is-not-loading-after-turning-on-the-csp-settings/128587)._
