mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -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}" \
|
"#{Discourse.base_path}" \
|
||||||
"/theme-javascripts/tests/#{theme.id}-#{digest}.js" \
|
"/theme-javascripts/tests/#{theme.id}-#{digest}.js" \
|
||||||
"?__ws=#{Discourse.current_hostname}"
|
"?__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
|
||||||
end
|
end
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
<%- end %>
|
<%- end %>
|
||||||
|
|
||||||
<%- if params['testem'] %>
|
<%- if params['testem'] %>
|
||||||
<script defer src="/assets/testem.js"></script>
|
<script defer src="/assets/testem.js" nonce="<%= csp_nonce_placeholder %>"></script>
|
||||||
<%- end %>
|
<%- end %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
Loading…
Reference in New Issue
Block a user