From 8c56441b4a52f23d4793f35fdf27a815cced0d61 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 16 Nov 2022 16:28:48 +0100 Subject: [PATCH] Add form-action CSP directive (#1948) --- config/initializers/content_security_policy.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/config/initializers/content_security_policy.rb b/config/initializers/content_security_policy.rb index 0174e06365..ce8aa7af22 100644 --- a/config/initializers/content_security_policy.rb +++ b/config/initializers/content_security_policy.rb @@ -41,6 +41,7 @@ if Rails.env.production? p.worker_src :self, :blob, assets_host p.connect_src :self, :blob, :data, Rails.configuration.x.streaming_api_base_url, *data_hosts p.manifest_src :self, assets_host + p.form_action :self end end