mirror of
https://github.com/msfjarvis/server-config
synced 2025-08-14 14:07:02 +05:30
Caddyfile: Setup CSP
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
137cf4cca5
commit
0af27cdf57
1 changed files with 8 additions and 0 deletions
|
@ -9,6 +9,14 @@
|
|||
header / {
|
||||
Content-Security-Policy "
|
||||
report-uri https://msfjarvis.report-uri.com/r/d/csp/reportOnly;
|
||||
default-src 'self';
|
||||
style-src 'self' 'unsafe-inline' fonts.googleapis.com commento.msfjarvis.dev;
|
||||
script-src 'self' 'unsafe-inline' commento.msfjarvis.dev;
|
||||
font-src 'self' fonts.gstatic.com commento.msfjarvis.dev;
|
||||
img-src data: 'self' imgur.com *.imgur.com;
|
||||
form-action 'self';
|
||||
connect-src 'self' msfjarvis.dev commento.msfjarvis.dev;
|
||||
frame-ancestors 'none';
|
||||
"
|
||||
# Security related changes stolen from https://github.com/searx/searx-docker/blob/master/Caddyfile
|
||||
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue