We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a8afad4 commit 73bc187Copy full SHA for 73bc187
1 file changed
middleware/csp.js
@@ -56,7 +56,7 @@ module.exports = async (req, res, next) => {
56
57
// Exception for Algolia instantsearch in deprecated Enterprise docs (Node.js era)
58
if (versionSatisfiesRange(requestedVersion, '<=2.19') && versionSatisfiesRange(requestedVersion, '>2.12')) {
59
- csp.directives.scriptSrc.push("'unsafe-eval'", 'http://www.google-analytics.com')
+ csp.directives.scriptSrc.push("'unsafe-eval'", "'unsafe-inline'", 'http://www.google-analytics.com', 'https://ssl.google-analytics.com')
60
csp.directives.connectSrc.push('https://www.google-analytics.com')
61
csp.directives.imgSrc.push('http://www.google-analytics.com')
62
}
0 commit comments