You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# "meta" values. these will shaped the header, but the values are not included in the header.
51
-
report_only:true, # default: false
51
+
report_only:true,# default: false
52
52
preserve_schemes:true, # default: false. Schemes are removed from host sources to save bytes and discourage mixed content.
53
53
54
54
# directive values: these values will directly translate into source directives
@@ -66,7 +66,7 @@ SecureHeaders::Configuration.default do |config|
66
66
form_action:%w('self' github.com),
67
67
frame_ancestors:%w('none'),
68
68
plugin_types:%w(application/x-shockwave-flash),
69
-
block_all_mixed_content:true, # see [http://www.w3.org/TR/mixed-content/](http://www.w3.org/TR/mixed-content/)
69
+
block_all_mixed_content:true, # see http://www.w3.org/TR/mixed-content/
70
70
upgrade_insecure_requests:true, # see https://www.w3.org/TR/upgrade-insecure-requests/
71
71
report_uri:%w(https://report-uri.io/example-csp)
72
72
}
@@ -85,7 +85,7 @@ end
85
85
86
86
### rails 2
87
87
88
-
For rails 3+ applications, `secure_headers` has a `railtie` that should automatically include the middleware. For rails 2 applications, an explicit statement is required to use the middleware component.
88
+
For rails 3+ applications, `secure_headers` has a `railtie` that should automatically include the middleware. For rails 2 or non-rails applications, an explicit statement is required to use the middleware component.
89
89
90
90
```ruby
91
91
use SecureHeaders::Middleware
@@ -137,7 +137,7 @@ class MyController < ApplicationController
137
137
end
138
138
```
139
139
140
-
By default, a noop configuration is provided. No headers will be set when this default override is used.
140
+
By default, a no-op configuration is provided. No headers will be set when this default override is used.
141
141
142
142
```ruby
143
143
classMyController < ApplicationController
@@ -163,12 +163,12 @@ You can override the settings for a given action by producing a temporary overri
163
163
classMyController < ApplicationController
164
164
defindex
165
165
# Append value to the source list, override 'none' values
0 commit comments