aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorclaudiob <claudiob@users.noreply.github.com>2018-01-30 08:20:58 -0800
committerclaudiob <claudiob@users.noreply.github.com>2018-01-30 08:20:58 -0800
commit5ea2d0224ff9011512754bea73a6eca7c7a7665f (patch)
treea38cf407e222cc882d571277eae703dedffec424 /guides/source
parent0c98d06a5eba6248c23d19e927922b3dde183939 (diff)
downloadrails-5ea2d0224ff9011512754bea73a6eca7c7a7665f.tar.gz
rails-5ea2d0224ff9011512754bea73a6eca7c7a7665f.tar.bz2
rails-5ea2d0224ff9011512754bea73a6eca7c7a7665f.zip
Add ContentSecurityPolicy to list of middleware
Document in the guides the new middleware added in #31162 [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/rails_on_rack.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/guides/source/rails_on_rack.md b/guides/source/rails_on_rack.md
index 5718b9ddfc..6780e7c0de 100644
--- a/guides/source/rails_on_rack.md
+++ b/guides/source/rails_on_rack.md
@@ -284,6 +284,10 @@ Much of Action Controller's functionality is implemented as Middlewares. The fol
* Sets up the flash keys. Only available if `config.action_controller.session_store` is set to a value.
+**`ActionDispatch::ContentSecurityPolicy::Middleware`**
+
+* Provides a DSL to configure a Content-Security-Policy header.
+
**`Rack::Head`**
* Converts HEAD requests to `GET` requests and serves them as so.