# Ember errors when adding script to \</body\>

**URL:** https://meta.discourse.org/t/ember-errors-when-adding-script-to-body/84233
**Category:** Support
**Created:** [March 30, 2018, 3:00pm UTC](https://meta.discourse.org/t/ember-errors-when-adding-script-to-body/84233 "2018-03-30T15:00:09Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![JohnONolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnonolan/32/93161_2.png) [@JohnONolan](https://meta.discourse.org/u/JohnONolan)
#### Post date: [March 30, 2018, 3:00pm UTC](https://meta.discourse.org/t/ember-errors-when-adding-script-to-body/84233/1 "2018-03-30T15:00:10Z")

</div>

Have searched (a lot) to try and make sure I’m not missing something, but I’m totally stumped. Currently adding any sort of `<script>` tag to any part of the theme editor is throwing a 403 error on Ember JQuery.

Anyone know what’s going on here? (Using a fresh Discourse install hosted on [Discourse.org](http://Discourse.org))

Followed instructions here - [https://meta.discourse.org/t/add-javascript-from-optimizely/35470](https://meta.discourse.org/t/add-javascript-from-optimizely/35470)

Error below, which I can consistently reproduce. Saving anything other than a script works fine.

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/8/98cf655529a828bcac9f2d0a0b9712927ee0bc95.png)

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [March 30, 2018, 3:41pm UTC](https://meta.discourse.org/t/ember-errors-when-adding-script-to-body/84233/2 "2018-03-30T15:41:13Z")

</div>

Hmm…no repro on [try.discourse.org](http://try.discourse.org).

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/8/6853f6df42b934c2f23e21c57657783800a25a46.png)

[https://global.discourse-cdn.com/meta/original/3X/3/e/3e9bb50c545bf71ef7679ecb890ff1ddae1c85be.mp4](https://global.discourse-cdn.com/meta/original/3X/3/e/3e9bb50c545bf71ef7679ecb890ff1ddae1c85be.mp4)

---

<div class="post-metadata">

### Author: ![JohnONolan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johnonolan/32/93161_2.png) [@JohnONolan](https://meta.discourse.org/u/JohnONolan)
#### Post date: [March 30, 2018, 3:46pm UTC](https://meta.discourse.org/t/ember-errors-when-adding-script-to-body/84233/3 "2018-03-30T15:46:41Z")

</div>

So I poked the response body of the 403 and found it was a Cloudflare intercepting the request payload and asking me to complete a captcha 🤷‍♀️. I’m in South Africa at the moment so I managed to get around it by connecting to a VPN to the UK.

2 hours well spent 😂

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [March 30, 2018, 8:38pm UTC](https://meta.discourse.org/t/ember-errors-when-adding-script-to-body/84233/4 "2018-03-30T20:38:08Z")

</div>

We strongly recommend you disable cloudflare on Discourse (other than for DNS usage, which is fine), it causes many problems in our experience. Plus we already provide a global CDN to all customers.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [March 30, 2018, 10:00pm UTC](https://meta.discourse.org/t/ember-errors-when-adding-script-to-body/84233/5 "2018-03-30T22:00:10Z")

</div>

This topic was automatically closed after 6 hours. New replies are no longer allowed.
