FEATURE: Implement nonces for Google Tag Manager integration (#12531)

This commit is contained in:
Penar Musaraj
2021-03-26 11:19:31 -04:00
committed by GitHub
parent d858c7680a
commit 5096920500
7 changed files with 29 additions and 8 deletions

View File

@@ -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