Skip to content

Commit 23b37d0

Browse files
authored
Update docs to encourage using default-src 'none'
1 parent 2a1d16a commit 23b37d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ SecureHeaders::Configuration.default do |config|
7777
preserve_schemes: true, # default: false. Schemes are removed from host sources to save bytes and discourage mixed content.
7878

7979
# directive values: these values will directly translate into source directives
80-
default_src: %w(https: 'self'),
80+
default_src: %w('none'),
8181
base_uri: %w('self'),
8282
block_all_mixed_content: true, # see http://www.w3.org/TR/mixed-content/
8383
child_src: %w('self'), # if child-src isn't supported, the value for frame-src will be set.

0 commit comments

Comments
 (0)