Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: beef up CSP headers #1759

Merged
merged 4 commits into from
May 3, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
more csp fixes
  • Loading branch information
nolanlawson committed May 2, 2020
commit 8c0704f4c6a213de43b6c49cffc7ec12d4797762
4 changes: 2 additions & 2 deletions bin/build-now-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ const SCRIPT_CHECKSUMS = [inlineScriptChecksum]
const HTML_HEADERS = {
'cache-control': 'public,max-age=3600',
'content-security-policy': [
"default-src 'none'",
"default-src 'self'",
`script-src 'self' ${SCRIPT_CHECKSUMS}`,
"worker-src 'self'",
"style-src 'self' 'unsafe-inline'",
"img-src 'self' * data: blob:",
"media-src 'self' *",
"connect-src 'self' * data:",
"connect-src 'self' * data: blob:",
"frame-src 'none'",
"frame-ancestors 'none'",
"object-src 'none'",
Expand Down