]> git.openstreetmap.org Git - rails.git/commitdiff
Preserve schemes in security policy
authorTom Hughes <tom@compton.nu>
Thu, 17 May 2018 18:10:23 +0000 (19:10 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 17 May 2018 18:10:23 +0000 (19:10 +0100)
config/initializers/secure_headers.rb

index bb901e3759430cb365f8bcd44407776ec199cf06..ba9aa496f4468601293db2a7bd13abed81e404a5 100644 (file)
@@ -1,5 +1,6 @@
 if defined?(CSP_REPORT_URL)
   csp_policy = {
+    :preserve_schemes => true,
     :default_src => %w['self'],
     :child_src => %w['self'],
     :connect_src => %w['self'],