summaryrefslogtreecommitdiff
path: root/internal/text/markdown.go
diff options
context:
space:
mode:
authorLibravatar Daenney <daenney@users.noreply.github.com>2023-08-11 13:20:56 +0200
committerLibravatar GitHub <noreply@github.com>2023-08-11 13:20:56 +0200
commit3aedd937c3d4ef65aa24a7ca8f48616731625f44 (patch)
treec3ed5c9fad7f200ac5dc153b339ddc47a22fad6a /internal/text/markdown.go
parent[bugfix] Populate followReq before accessing targetaccount pointer (#2099) (diff)
downloadgotosocial-3aedd937c3d4ef65aa24a7ca8f48616731625f44.tar.xz
[feature] Set Content-Security-Policy header (#2095)
This adds the CSP header with a policy of only loading from the same domain. We don't make use of external media, CSS, JS, fonts, so we don't ever need external data loaded in our context. When building a DEBUG build, the policy gets extended to include localhost:*, i.e localhost on any port. This keeps the live-reloading flow for JS development working. localhost and 127.0.0.1 are considered to be the same so mixing and matching those doesn't result in a CSP violation.
Diffstat (limited to 'internal/text/markdown.go')
0 files changed, 0 insertions, 0 deletions