Skip to content

Commit

Permalink
Revert "Fix image and media loading when using external storage server"
Browse files Browse the repository at this point in the history
This reverts commit 6cfa024.
  • Loading branch information
ClearlyClaire committed Nov 26, 2023
1 parent b3581d1 commit 07de0c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions config/initializers/content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def sso_host
p.default_src :none
p.frame_ancestors :none
p.font_src :self, assets_host
p.img_src :self, :data, :blob, assets_host, media_host
p.img_src :self, :data, :blob, assets_host
p.style_src :self, assets_host
p.media_src :self, :data, assets_host, media_host
p.media_src :self, :data, assets_host
p.frame_src :self, :https
p.manifest_src :self, assets_host

Expand Down
4 changes: 2 additions & 2 deletions spec/requests/content_security_policy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"default-src 'none'",
"frame-ancestors 'none'",
"font-src 'self' https://cb6e6126.ngrok.io",
"img-src 'self' data: blob: https://cb6e6126.ngrok.io https://cb6e6126.ngrok.io",
"img-src 'self' data: blob: https://cb6e6126.ngrok.io",
"style-src 'self' https://cb6e6126.ngrok.io 'nonce-ZbA+JmE7+bK8F5qvADZHuQ=='",
"media-src 'self' data: https://cb6e6126.ngrok.io https://cb6e6126.ngrok.io",
"media-src 'self' data: https://cb6e6126.ngrok.io",
"frame-src 'self' https:",
"manifest-src 'self' https://cb6e6126.ngrok.io",
"form-action 'self'",
Expand Down

0 comments on commit 07de0c6

Please sign in to comment.