# Añade soporte para CSP nonce-source

**URL:** <https://meta.discourse.org/t/add-csp-nonce-source-support/93300>\
**Category:** Development\
**Created:** [27 Julio, 2018 16:19 UTC](https://meta.discourse.org/t/add-csp-nonce-source-support/93300 "2018-07-27T16:19:33Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [28 Agosto, 2018 22:36 UTC](https://meta.discourse.org/t/add-csp-nonce-source-support/93300/12 "2018-08-28T22:36:28Z")

</div>

Given that we are now a lot bigger than what we were 2 years ago, and can afford resources here, I would prefer to do this “the proper way” ™.

This would involve:

- Changing the theme system so it pulls out scripts and ships them as static payloads instead of inline (which is great overall cause themes can ship more JS with less impact)

- Changing the “dynamically” generated JavaScript so we simply render data attributes on an element and then fish it out in a static script.

It is a biggish task but I feel it is manageable now and @xrav3nz can take it (and coordinate with @Osama the theme changes needed)

I much prefer this to the nonce approach cause we don’t need code to generate nonces and dynamically add nonces which is just busywork and it is clearly not at clean as a standard “no inline JS” approach which is also far easier to explain and maintain longer term.

---

_[View the full topic](https://meta.discourse.org/t/add-csp-nonce-source-support/93300)._
