Skip to content

Commit

Permalink
Revert "Revert "Use "unsafe-wasm-eval" instead of "unsafe-eval" in sc…
Browse files Browse the repository at this point in the history
…ript-src CSP (mastodon#20606)""

This reverts commit 999011e.
  • Loading branch information
mimikun committed Nov 24, 2022
1 parent ee5f297 commit 5122a75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/content_security_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def host_to_url(str)
p.worker_src :self, :blob, assets_host
else
p.connect_src :self, :data, :blob, assets_host, media_host, Rails.configuration.x.streaming_api_base_url
p.script_src :self, assets_host, :unsafe_eval
p.script_src :self, assets_host, "'unsafe-wasm-eval'"
p.child_src :self, :blob, assets_host
p.worker_src :self, :blob, assets_host
end
Expand Down

0 comments on commit 5122a75

Please sign in to comment.