Skip to content

Commit 575752a

Browse files
committed
re-add unsafe-eval to the CSP for deprecated docs
1 parent 91d3857 commit 575752a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

middleware/csp.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ module.exports = contentSecurityPolicy({
3030
],
3131
scriptSrc: [
3232
"'self'",
33-
'data:'
33+
'data:',
34+
"'unsafe-eval'" // exception for Algolia instantsearch in deprecated Enterprise docs
3435
],
3536
frameSrc: [ // exceptions for GraphQL Explorer
3637
'https://graphql-explorer.githubapp.com', // production env

0 commit comments

Comments
 (0)