mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Implement nonces for Google Tag Manager integration (#12531)
This commit is contained in:
@@ -94,6 +94,7 @@ describe ContentSecurityPolicy do
|
||||
|
||||
script_srcs = parse(policy)['script-src']
|
||||
expect(script_srcs).to include('https://www.googletagmanager.com/gtm.js')
|
||||
expect(script_srcs.to_s).to include('nonce-')
|
||||
end
|
||||
|
||||
it 'allowlists CDN assets when integrated' do
|
||||
|
||||
Reference in New Issue
Block a user