Skip to content

Commit 73bc187

Browse files
committed
update csp
1 parent a8afad4 commit 73bc187

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

middleware/csp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = async (req, res, next) => {
5656

5757
// Exception for Algolia instantsearch in deprecated Enterprise docs (Node.js era)
5858
if (versionSatisfiesRange(requestedVersion, '<=2.19') && versionSatisfiesRange(requestedVersion, '>2.12')) {
59-
csp.directives.scriptSrc.push("'unsafe-eval'", 'http://www.google-analytics.com')
59+
csp.directives.scriptSrc.push("'unsafe-eval'", "'unsafe-inline'", 'http://www.google-analytics.com', 'https://ssl.google-analytics.com')
6060
csp.directives.connectSrc.push('https://www.google-analytics.com')
6161
csp.directives.imgSrc.push('http://www.google-analytics.com')
6262
}

0 commit comments

Comments
 (0)