# Adding JavaScript to a theme in /head not working (UserWay)

**URL:** <https://meta.discourse.org/t/adding-javascript-to-a-theme-in-head-not-working-userway/148799>\
**Category:** Product Support\
**Created:** [April 22, 2020, 2:32am UTC](https://meta.discourse.org/t/adding-javascript-to-a-theme-in-head-not-working-userway/148799 "2020-04-22T02:32:44Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)\
**Post date:** [April 22, 2020, 3:45am UTC](https://meta.discourse.org/t/adding-javascript-to-a-theme-in-head-not-working-userway/148799/3 "2020-04-22T03:45:52Z")

</div>

Try adding `https://cdn.userway.org` to the

`content_security_policy_script_src`

site setting and see if that resolves your issue.

Like so

 ![CSP whitelist setting](https://global.discourse-cdn.com/meta/original/3X/6/a/6af0a9f3456ae93f3dcab7c7daf98179fc267489.png)

---

_[View the full topic](https://meta.discourse.org/t/adding-javascript-to-a-theme-in-head-not-working-userway/148799)._
