Skip to content

Commit

Permalink
Add CSP & Cache Control headers (rilldata#2478)
Browse files Browse the repository at this point in the history
* Add CSP & Cache Control headers
  • Loading branch information
himadrisingh authored May 24, 2023
1 parent 746f366 commit e4615b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/cloud-admin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ on:
push:
tags:
- "*"
branches: ["main"]
branches:
- "main"
paths:
- ".github/workflows/cloud-admin.yml"
- "web-admin/**"
Expand Down Expand Up @@ -43,4 +44,5 @@ jobs:
enable-pull-request-comment: false
enable-commit-comment: true
overwrites-pull-request-comment: true
netlify-config-path: ./netlify.toml
timeout-minutes: 1
10 changes: 10 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This should be used for docs also
[[headers]]
for = "/*"
[headers.values]
Content-Security-Policy = "default-src https:; script-src https: 'unsafe-inline'; style-src https: 'unsafe-inline'; img-src https: data: blob:"
Permissions-Policy = "geolocation=(),midi=(),sync-xhr=(self),microphone=(),camera=(),magnetometer=(),gyroscope=(),fullscreen=(self),payment=()"
Referrer-Policy = "no-referrer"
X-Frame-Options = "SAMEORIGIN"
X-Content-Type-Options = "nosniff"

0 comments on commit e4615b9

Please sign in to comment.