diff options
author | href <href@random.sh> | 2018-11-13 15:58:02 +0100 |
---|---|---|
committer | href <href@random.sh> | 2018-11-13 15:58:02 +0100 |
commit | 9b553a1087a3539280a4a085bcf7a79f29972f0a (patch) | |
tree | c22a5d599bb619ce640ac5b790d46eac2d95982d /lib/pleroma/web/twitter_api/twitter_api_controller.ex | |
parent | 22d20c497b813cdaedddb40a46df2f597311b235 (diff) | |
download | pleroma-9b553a1087a3539280a4a085bcf7a79f29972f0a.tar.gz |
media_proxy: CSP, content-disposition
* Adds CSP headers to the media proxy endpoint
* Sends `content-disposition: attachment; …` for non-image/video/audio
content types
The default list can be overwritten with `:media_proxy,
:safe_content_types` in the configuration.
* Also now appends the filename to the proxy URL (fixes some mobile apps,
it was requested a while ago)
Diffstat (limited to 'lib/pleroma/web/twitter_api/twitter_api_controller.ex')
0 files changed, 0 insertions, 0 deletions