We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76c5bb1 commit f31aa9cCopy full SHA for f31aa9c
1 file changed
middleware/csp.js
@@ -56,7 +56,9 @@ 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'")
+ csp.directives.scriptSrc.push("'unsafe-eval'", 'http://www.google-analytics.com')
60
+ csp.directives.connectSrc.push('https://www.google-analytics.com')
61
+ csp.directives.imgSrc.push('http://www.google-analytics.com')
62
}
63
64
// Exception for search in deprecated Enterprise docs <=2.12 (static site era)
0 commit comments