diff options
author | shibayashi <shibayashi@cypherpunk.observer> | 2018-08-29 01:16:13 +0200 |
---|---|---|
committer | shibayashi <shibayashi@cypherpunk.observer> | 2018-08-29 01:16:13 +0200 |
commit | 82e661cd070e72ad7a8a6ef1b8a3034f29a7b8d2 (patch) | |
tree | 19db7507c24f3d0be12a16cfc7f6917b8d50c449 /installation | |
parent | 0fd2eaf7afbbe557f56d4aa781f83fb8289316a1 (diff) | |
download | pleroma-82e661cd070e72ad7a8a6ef1b8a3034f29a7b8d2.tar.gz |
installation/caddyfile-pleroma.example: Add Content-Security-Policy
Diffstat (limited to 'installation')
-rw-r--r-- | installation/caddyfile-pleroma.example | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/installation/caddyfile-pleroma.example b/installation/caddyfile-pleroma.example index ed24fc16c..29496d1d7 100644 --- a/installation/caddyfile-pleroma.example +++ b/installation/caddyfile-pleroma.example @@ -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. |