Skip to content

Commit b0190c5

Browse files
committed
Change: update the README with the new directives
1 parent 722f9c8 commit b0190c5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,11 @@ SecureHeaders::Configuration.default do |config|
7575
sandbox: true, # true and [] will set a maximally restrictive setting
7676
plugin_types: %w(application/x-shockwave-flash),
7777
script_src: %w('self'),
78+
script_src_elem: %w('self'),
79+
script_src_attr: %w('self'),
7880
style_src: %w('unsafe-inline'),
81+
style_src_elem: %w('unsafe-inline'),
82+
style_src_attr: %w('unsafe-inline'),
7983
worker_src: %w('self'),
8084
upgrade_insecure_requests: true, # see https://www.w3.org/TR/upgrade-insecure-requests/
8185
report_uri: %w(https://report-uri.io/example-csp)

0 commit comments

Comments
 (0)