Skip to content

Commit

Permalink
Fix CSP error
Browse files Browse the repository at this point in the history
  • Loading branch information
katomm committed Apr 18, 2024
1 parent 1320d4e commit 74fa745
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# Activates the browser's built-in cross-site scripting (XSS) filter and blocks responses if an attack is detected.
X-XSS-Protection = "1; mode=block"
# Ensures that only trusted content is executed and styled.
Content-Security-Policy = "default-src 'self'; script-src 'self' 'blob:' https://cardano.org https://new-cardano-org-staging.netlify.app https://www.googletagmanager.com https://js.hsforms.net https://forms.hsforms.com; img-src 'self' https://cardano.org https://new-cardano-org-staging.netlify.app data: https://*.ytimg.com; style-src 'self' 'unsafe-inline'; frame-src 'self' https://www.youtube.com; media-src 'self' https://www.youtube.com; connect-src 'self' https://hubspot-forms-static-embed.s3.amazonaws.com https://forms.hsforms.com"
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' https://cardano.org https://new-cardano-org-staging.netlify.app https://www.googletagmanager.com https://js.hsforms.net https://forms.hsforms.com https://www.google.com; img-src 'self' https://cardano.org https://new-cardano-org-staging.netlify.app data: https://*.ytimg.com; style-src 'self' 'unsafe-inline'; frame-src 'self' https://www.youtube.com; media-src 'self' https://www.youtube.com; connect-src 'self' https://hubspot-forms-static-embed.s3.amazonaws.com https://forms.hsforms.com https://forms-eu1.hsforms.com"
# Enforces secure connections via HTTPS, protecting against certain types of man-in-the-middle attacks.
Strict-Transport-Security = "max-age=63072000; includeSubDomains; preload"
# Controls information provided as the HTTP Referer header when navigating from your site, enhancing privacy and security.
Expand All @@ -23,4 +23,5 @@
[headers.values]
X-Frame-Options = "SAMEORIGIN"
# This path has it's own content security policy
Content-Security-Policy = "default-src 'self'; script-src 'self' 'blob:' https://cardano.org https://new-cardano-org-staging.netlify.app https://www.googletagmanager.com https://maxcdn.bootstrapcdn.com; img-src 'self' https://cardano.org https://new-cardano-org-staging.netlify.app data:; style-src 'self' 'unsafe-inline'; font-src 'self' https://maxcdn.bootstrapcdn.com"
Content-Security-Policy = "default-src 'self'; script-src 'self' 'unsafe-inline' https://cardano.org https://new-cardano-org-staging.netlify.app https://www.googletagmanager.com https://maxcdn.bootstrapcdn.com; img-src 'self' https://cardano.org https://new-cardano-org-staging.netlify.app data:; style-src 'self' 'unsafe-inline'; font-src 'self' https://maxcdn.bootstrapcdn.com"

0 comments on commit 74fa745

Please sign in to comment.