Ember errors when adding script to </body>


(JohnONolan) #1

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)

Followed instructions here - Add javascript from optimizely

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


(Joshua Rosenfeld) #2

Hmm…no repro on try.discourse.org.


(JohnONolan) #3

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 :woman_shrugging:. 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 :joy:


(Jeff Atwood) #4

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.


(Joshua Rosenfeld) #5

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