# AdSense追加時の「スクリプトの読み込みを拒否されました」エラー

**URL:** https://meta.discourse.org/t/refused-to-load-the-script-when-adding-adsense/108630
**Category:** Support
**Created:** [2019 年 2 月 7 日午後 7:09 UTC](https://meta.discourse.org/t/refused-to-load-the-script-when-adding-adsense/108630 "2019-02-07T19:09:25Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2019 年 2 月 7 日午後 7:14 UTC](https://meta.discourse.org/t/refused-to-load-the-script-when-adding-adsense/108630/2 "2019-02-07T19:14:12Z")

</div>

Please refer to our CSP docs:

> [@Mitigate XSS Attacks with Content Security Policy](https://meta.discourse.org/t/mitigate-xss-attacks-with-content-security-policy/104243/1):
>
> #### 3. `<script>` Tags Linking to External Resources
> 
> If your site’s customizations depend on third-party JavaScripts, you may either
> 
> 1. Copy and paste the script content into your theme / component, or
> 2. [Extend the default CSP](#heading--extend-default-csp) by whitelisting the source.
> 
> #### 4. Third-Party Script / Service Integration
> 
> Different integrations will have different requirements, but can be addressed similarly.
> 
> You could look up the integration’s recommended CSP whitelist, and extend the default CSP accordingly. I suggest simply [turn on CSP Report Only mode in Discourse](#heading--available-settings), and watch your console and/or `/logs` to determine which resources you’ll need to whitelist to make your integrations work.

---

_[View the full topic](https://meta.discourse.org/t/refused-to-load-the-script-when-adding-adsense/108630)._
