Browse Source

installation/caddyfile-pleroma.example: Add Content-Security-Policy

tags/v0.9.9
shibayashi 5 years ago
parent
commit
82e661cd07
No known key found for this signature in database GPG Key ID: C10662A33EB28508
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      installation/caddyfile-pleroma.example

+ 1
- 0
installation/caddyfile-pleroma.example View File

@@ -22,6 +22,7 @@ social.domain.tld {
Referrer-Policy "same-origin"
Strict-Transport-Security "max-age=31536000; includeSubDomains;"
Expect-CT "enforce, max-age=2592000"
Content-Security-Policy "default-src 'none'; base-uri 'self'; form-action 'self'; img-src 'self' data: https:; media-src 'self' https:; style-src 'self' 'unsafe-inline'; font-src 'self'; script-src 'self'; connect-src 'self' wss://social.domain.tld; upgrade-insecure-requests;"
}

# If you do not want remote frontends to be able to access your Pleroma backend server, remove these lines.


Loading…
Cancel
Save