GoToSocial/docs
Daenney 3aedd937c3
[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.
2023-08-11 13:20:56 +02:00
..
admin
advanced
api
assets
configuration
federation
getting_started [feature] Set Content-Security-Policy header (#2095) 2023-08-11 13:20:56 +02:00
user_guide
environment.yml
faq.md
index.md
swagger.go