From 5ea2d0224ff9011512754bea73a6eca7c7a7665f Mon Sep 17 00:00:00 2001 From: claudiob Date: Tue, 30 Jan 2018 08:20:58 -0800 Subject: Add ContentSecurityPolicy to list of middleware Document in the guides the new middleware added in #31162 [ci skip] --- guides/source/rails_on_rack.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'guides') 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. -- cgit v1.2.3