diff options
author | Alexey Markov <piton4eg@mail.ru> | 2015-08-20 21:36:58 +0300 |
---|---|---|
committer | Alexey Markov <piton4eg@mail.ru> | 2015-08-20 21:36:58 +0300 |
commit | 81cec09aac1244eb6d59d2654712afd394bef755 (patch) | |
tree | 544f32729629695170c05afa4e3787bc5bd6c9b2 /guides | |
parent | eb7311013565a1a3d4a70024179865f87e670095 (diff) | |
download | rails-81cec09aac1244eb6d59d2654712afd394bef755.tar.gz rails-81cec09aac1244eb6d59d2654712afd394bef755.tar.bz2 rails-81cec09aac1244eb6d59d2654712afd394bef755.zip |
Small fixes [ci skip]
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/security.md | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/guides/source/security.md b/guides/source/security.md index 21cf48c2cf..79ddbd50bd 100644 --- a/guides/source/security.md +++ b/guides/source/security.md @@ -1014,18 +1014,12 @@ config.action_dispatch.default_headers.clear Here is a list of common headers: -* X-Frame-Options -_'SAMEORIGIN' in Rails by default_ - allow framing on same domain. Set it to 'DENY' to deny framing at all or 'ALLOWALL' if you want to allow framing for all website. -* X-XSS-Protection -_'1; mode=block' in Rails by default_ - use XSS Auditor and block page if XSS attack is detected. Set it to '0;' if you want to switch XSS Auditor off(useful if response contents scripts from request parameters) -* X-Content-Type-Options -_'nosniff' in Rails by default_ - stops the browser from guessing the MIME type of a file. -* X-Content-Security-Policy -[A powerful mechanism for controlling which sites certain content types can be loaded from](http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.html) -* Access-Control-Allow-Origin -Used to control which sites are allowed to bypass same origin policies and send cross-origin requests. -* Strict-Transport-Security -[Used to control if the browser is allowed to only access a site over a secure connection](http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security) +* X-Frame-Options - _'SAMEORIGIN' in Rails by default_ - allow framing on same domain. Set it to 'DENY' to deny framing at all or 'ALLOWALL' if you want to allow framing for all website. +* X-XSS-Protection - _'1; mode=block' in Rails by default_ - use XSS Auditor and block page if XSS attack is detected. Set it to '0;' if you want to switch XSS Auditor off(useful if response contents scripts from request parameters) +* X-Content-Type-Options - _'nosniff' in Rails by default_ - stops the browser from guessing the MIME type of a file. +* X-Content-Security-Policy - [A powerful mechanism for controlling which sites certain content types can be loaded from](http://w3c.github.io/webappsec/specs/content-security-policy/csp-specification.dev.html) +* Access-Control-Allow-Origin - Used to control which sites are allowed to bypass same origin policies and send cross-origin requests. +* Strict-Transport-Security - [Used to control if the browser is allowed to only access a site over a secure connection](http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security) Environmental Security ---------------------- |