mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-16 01:09:55 +00:00
Fix image and media loading when using external storage server
Fixes #2479
This commit is contained in:
@@ -48,9 +48,9 @@ Rails.application.config.content_security_policy do |p|
|
||||
p.default_src :none
|
||||
p.frame_ancestors :none
|
||||
p.font_src :self, assets_host
|
||||
p.img_src :self, :data, :blob, assets_host
|
||||
p.img_src :self, :data, :blob, assets_host, media_host
|
||||
p.style_src :self, assets_host
|
||||
p.media_src :self, :data, assets_host
|
||||
p.media_src :self, :data, assets_host, media_host
|
||||
p.frame_src :self, :https
|
||||
p.manifest_src :self, assets_host
|
||||
|
||||
|
||||
Reference in New Issue
Block a user