Skip to content

Commit 6f23b4b

Browse files
authored
Merge pull request #2696 from canonical/WD-37396
fix: nonce lite-youtube bootstrap script so injected <style> passes CSP
2 parents c67d60e + 1b061ab commit 6f23b4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

templates/base_index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
Must run before the deferred lite-youtube module upgrades the
7171
element.
7272
-->
73-
<script>window.liteYouTubeNonce = "{{ csp_nonce }}";</script>
73+
<script nonce="{{ csp_nonce }}">window.liteYouTubeNonce = {{ csp_nonce | tojson }};</script>
7474

7575
{% block extra_metatags %}{% endblock %}
7676

0 commit comments

Comments
 (0)