mirror of https://github.com/rails/rails
Document what the new default_headers will be [ci skip]
This commit is contained in:
parent
9188b49883
commit
e0c29df00d
|
@ -939,7 +939,6 @@ config.action_dispatch.default_headers = {
|
|||
'X-Frame-Options' => 'SAMEORIGIN',
|
||||
'X-XSS-Protection' => '1; mode=block',
|
||||
'X-Content-Type-Options' => 'nosniff',
|
||||
'X-Download-Options' => 'noopen',
|
||||
'X-Permitted-Cross-Domain-Policies' => 'none',
|
||||
'Referrer-Policy' => 'strict-origin-when-cross-origin'
|
||||
}
|
||||
|
@ -1763,6 +1762,16 @@ Accepts a string for the HTML tag used to wrap attachments. Defaults to `"action
|
|||
|
||||
#### For '7.1', defaults from previous versions below and:
|
||||
|
||||
- `config.action_dispatch.default_headers`:
|
||||
|
||||
{
|
||||
"X-Frame-Options" => "SAMEORIGIN",
|
||||
"X-XSS-Protection" => "0",
|
||||
"X-Content-Type-Options" => "nosniff",
|
||||
"X-Permitted-Cross-Domain-Policies" => "none",
|
||||
"Referrer-Policy" => "strict-origin-when-cross-origin"
|
||||
}
|
||||
|
||||
|
||||
#### For '7.0', defaults from previous versions below and:
|
||||
|
||||
|
|
Loading…
Reference in New Issue