CSP: Explicitly add child_src for older browsers

This commit is contained in:
Sebastian Serth
2024-04-26 20:17:07 +02:00
parent 545dcd0b92
commit 11f1845436

View File

@ -68,6 +68,8 @@ Rails.application.configure do
# Web workers are used by the ACE editor (for syntax highlighting) and JStree (for processing trees).
# Those dependencies are loading further code via blobs.
policy.worker_src :self, :blob
# The `child_src` directive is only a fallback for browsers not supporting `worker_src`.
policy.child_src :self, :blob
policy.form_action :self
policy.frame_ancestors :none
policy.frame_src :none