projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6feffc
)
Preserve schemes in security policy
author
Tom Hughes
<tom@compton.nu>
Thu, 17 May 2018 18:10:23 +0000
(19:10 +0100)
committer
Tom Hughes
<tom@compton.nu>
Thu, 17 May 2018 18:10:23 +0000
(19:10 +0100)
config/initializers/secure_headers.rb
patch
|
blob
|
history
diff --git
a/config/initializers/secure_headers.rb
b/config/initializers/secure_headers.rb
index bb901e3759430cb365f8bcd44407776ec199cf06..ba9aa496f4468601293db2a7bd13abed81e404a5 100644
(file)
--- a/
config/initializers/secure_headers.rb
+++ b/
config/initializers/secure_headers.rb
@@
-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'],