Skip to content

Commit

Permalink
chore: remove disqus from csp
Browse files Browse the repository at this point in the history
  • Loading branch information
TrebledJ committed Jul 1, 2024
1 parent e03db65 commit 978fc39
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _data/csp.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ module.exports = compileCsp(
// step is skipped to optimise for speed, so for fast builds, we just use
// unsafe-inline.
.add(...(process.env.ENVIRONMENT === 'fast' ? ["'unsafe-inline'"] : []))
.add('*.disqus.com', '*.disquscdn.com')
// .add('*.disqus.com', '*.disquscdn.com')
.add('code.jquery.com', 'cdn.jsdelivr.net')
.add('gist.github.com')
.add('static.cloudflareinsights.com'),
tag('style')
.add("'unsafe-inline'")
// .add(`'unsafe-hashes'`)
.add('*.disquscdn.com')
// .add('*.disquscdn.com')
.add('cdn.jsdelivr.net')
.add('cdnjs.cloudflare.com')
.add('github.githubassets.com'),
Expand All @@ -43,11 +43,11 @@ module.exports = compileCsp(
.add('cdn.jsdelivr.net')
.add('cdnjs.cloudflare.com'),
tag('img')
.add('data:')
.add('c.disquscdn.com'), // .add('*')
.add('data:'),
// .add('c.disquscdn.com'), // .add('*')

tag('frame')
.add('disqus.com')
// .add('disqus.com')
.add('*.soundcloud.com'),
tag('connect')
.add('cloudflareinsights.com')
Expand Down

0 comments on commit 978fc39

Please sign in to comment.