mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 10:20:58 -06:00
DEV: update theme-qunit to work with strict-dynamic CSP (#26053)
This commit is contained in:
parent
00a5f67daf
commit
30a3e21463
@ -11,6 +11,6 @@ module QunitHelper
|
||||
"#{Discourse.base_path}" \
|
||||
"/theme-javascripts/tests/#{theme.id}-#{digest}.js" \
|
||||
"?__ws=#{Discourse.current_hostname}"
|
||||
"<script defer src='#{src}' data-theme-id='#{theme.id}'></script>".html_safe
|
||||
"<script defer src='#{src}' data-theme-id='#{theme.id}' nonce='#{csp_nonce_placeholder}'></script>".html_safe
|
||||
end
|
||||
end
|
||||
|
@ -41,7 +41,7 @@
|
||||
<%- end %>
|
||||
|
||||
<%- if params['testem'] %>
|
||||
<script defer src="/assets/testem.js"></script>
|
||||
<script defer src="/assets/testem.js" nonce="<%= csp_nonce_placeholder %>"></script>
|
||||
<%- end %>
|
||||
</head>
|
||||
<body>
|
||||
|
Loading…
Reference in New Issue
Block a user