diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-18 15:36:32 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-18 15:36:32 -0700 |
commit | af26adcffbf97e8f7abdd63d0a4d501c70250a09 (patch) | |
tree | c287546075524fa619e965de5ca315fd654ebf7e /guides | |
parent | db78e58294c5e4ee6fb960c79f882c80b22afbcf (diff) | |
parent | 4848bf321b34cc06990bf6e3e10cbadaf992bc37 (diff) | |
download | rails-af26adcffbf97e8f7abdd63d0a4d501c70250a09.tar.gz rails-af26adcffbf97e8f7abdd63d0a4d501c70250a09.tar.bz2 rails-af26adcffbf97e8f7abdd63d0a4d501c70250a09.zip |
Merge pull request #7390 from aantix/add_x_content_type_options_to_default_headers
Added X-Content-Type-Options to the header defaults.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/configuring.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/configuring.textile b/guides/source/configuring.textile index 5ed3ad4a6b..c29b70ad5b 100644 --- a/guides/source/configuring.textile +++ b/guides/source/configuring.textile @@ -341,7 +341,7 @@ h4. Configuring Action Dispatch * +config.action_dispatch.default_headers+ is a hash with HTTP headers that are set by default in each response. By default, this is defined as: <ruby> -config.action_dispatch.default_headers = { 'X-Frame-Options' => 'SAMEORIGIN', 'X-XSS-Protection' => '1; mode=block' } +config.action_dispatch.default_headers = { 'X-Frame-Options' => 'SAMEORIGIN', 'X-XSS-Protection' => '1; mode=block', 'X-Content-Type-Options' => 'nosniff' } </ruby> * +config.action_dispatch.tld_length+ sets the TLD (top-level domain) length for the application. Defaults to +1+. |