-
-
Save aviat/17c96a9707c0806cb307fb1dee6466d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SecureHeaders::Configuration.default do |config| | |
config.csp = { | |
script_src: %w(assets-cdn.github.com), | |
img_src: %w('self' *.wp.com *.gravatar.com collector.githubapp.com www.google-analytics.com data: identicons.github.com assets-cdn.github.com *.githubusercontent.com), | |
frame_ancestors: %w('none'), | |
default_src: %w('none'), | |
frame_src: %w(render.githubusercontent.com), | |
object_src: %w(assets-cdn.github.com), | |
style_src: %w('unsafe-inline' assets-cdn.github.com), | |
connect_src: %w(github-cloud.s3.amazonaws.com status.github.com 'self' www.google-analytics.com wss://live.github.com uploads.github.com api.github.com), | |
plugin_types: %w(application/x-shockwave-flash), | |
child_src: %w(render.githubusercontent.com), | |
media_src: %w('none'), | |
font_src: %w(assets-cdn.github.com), | |
block_all_mixed_content: %w(), | |
form_action: %w(github.com gist.github.com 'self'), | |
base_uri: %w('self') | |
} | |
end |
Thanks for the typos @oreoshake, that's fixed!
Yet for block_all_mixed_content the spec don't specify this boolean parameter:
https://www.w3.org/TR/mixed-content/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
preload
is not a part of CSP configincludeSubdomains
is not a part of CSP configblock_all_mixed_content
requires a boolean valueMaybe add
upgrade_insecure_requests: true
for some visibility into the feature?