diff options
author | Christoph (Sheogorath) Kern | 2018-04-05 01:13:15 +0200 |
---|---|---|
committer | GitHub | 2018-04-05 01:13:15 +0200 |
commit | 96af23fa31cd3d4e4f50ad2e66a500f5e88ad64f (patch) | |
tree | bf43b699f0913e28ed8de0e2c9410708538c04c7 /public/views/shared/ga.ejs | |
parent | a9a057723021ac4833ae665d0321c03564281b9e (diff) | |
parent | d939de17df08b7a2ff8302869981f4fc88566cd9 (diff) |
Merge pull request #791 from SISheogorath/fix/extendedCSPPolicies
Fix CSP for disqus and Google Analytics
Diffstat (limited to 'public/views/shared/ga.ejs')
-rw-r--r-- | public/views/shared/ga.ejs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/views/shared/ga.ejs b/public/views/shared/ga.ejs index 66d4acd9..27abb742 100644 --- a/public/views/shared/ga.ejs +++ b/public/views/shared/ga.ejs @@ -1,5 +1,5 @@ <% if(typeof GA !== 'undefined' && GA) { %> -<script> +<script nonce="<%= cspNonce %>"> (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { @@ -10,9 +10,9 @@ a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) -})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); +})(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga'); ga('create', '<%= GA %>', 'auto'); ga('send', 'pageview'); </script> -<% } %>
\ No newline at end of file +<% } %> |