# Добавить источники CSP в плагин

**URL:** <https://meta.discourse.org/t/add-csp-sources-to-the-plugin/140306>\
**Category:** Product Support\
**Tags:** advertising\
**Created:** [31.Январь.2020 14:56:34 UTC](https://meta.discourse.org/t/add-csp-sources-to-the-plugin/140306 "2020-01-31T14:56:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![marianord](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marianord/32/90502_2.png) [@marianord](https://meta.discourse.org/u/marianord)\
**Post date:** [31.Январь.2020 14:56:34 UTC](https://meta.discourse.org/t/add-csp-sources-to-the-plugin/140306/1 "2020-01-31T14:56:34Z")

</div>

Согласно [Mitigate XSS Attacks with Content Security Policy](https://meta.discourse.org/t/mitigate-xss-attacks-with-content-security-policy/104243), можно добавить набор источников в политики CSP.

Я думаю, было бы здорово добавить группу источников, аналогичных приведенным выше, для Google AdSense, чтобы плагин было проще настраивать пользователям без глубоких технических знаний.

```plaintext
Нарушение CSP: 'https://partner.googleadservices.com'
Нарушение CSP: 'https://tpc.googlesyndication.com'
Нарушение CSP: 'https://pagead2.googlesyndication.com'
Нарушение CSP: 'https://adservice.google.com'

```

---

_[View the full topic](https://meta.discourse.org/t/add-csp-sources-to-the-plugin/140306)._
