Skip to content

Commit cccff54

Browse files
committed
fix: add nonce attribute to liteYouTube script for CSP compliance
1 parent c67d60e commit cccff54

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 }}";</script>
7474

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

0 commit comments

Comments
 (0)