# We couldn't find the code on your site

**URL:** https://meta.discourse.org/t/we-couldnt-find-the-code-on-your-site/118847
**Category:** Support
**Tags:** advertising
**Created:** [May 28, 2019, 7:36am UTC](https://meta.discourse.org/t/we-couldnt-find-the-code-on-your-site/118847 "2019-05-28T07:36:16Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Chaboi\_3000](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chaboi_3000/32/163015_2.png) [@Chaboi\_3000](https://meta.discourse.org/u/Chaboi_3000)
#### Post date: [May 28, 2019, 7:47am UTC](https://meta.discourse.org/t/we-couldnt-find-the-code-on-your-site/118847/2 "2019-05-28T07:47:44Z")

</div>

It’s because you’re trying to run in-line JavaScript, which can cause some problems. This is why Discourse has removed it. For more information, go here:

> [@Mitigate XSS Attacks with Content Security Policy](https://meta.discourse.org/t/mitigate-xss-attacks-with-content-security-policy/104243):
>
> bookmark This guide explains how to use Content Security Policy (CSP) to mitigate Cross-Site Scripting (XSS) attacks in Discourse. It covers CSP basics, configuration, and best practices. person_raising_hand Required user level: Administrator Summary Content Security Policy (CSP) is a crucial security feature in Discourse that helps protect against Cross-Site Scripting (XSS) and other injection attacks. This guide covers the basics of CSP, how it’s implemented in Discourse, and how to c…

---

_[View the full topic](https://meta.discourse.org/t/we-couldnt-find-the-code-on-your-site/118847)._
