Skip to content

Commit

Permalink
Add ContentSecurityPolicy to list of middleware
Browse files Browse the repository at this point in the history
Document in the guides the new middleware added in rails#31162
[ci skip]
  • Loading branch information
claudiob committed Jan 30, 2018
1 parent 0c98d06 commit 5ea2d02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions guides/source/rails_on_rack.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 5ea2d02

Please sign in to comment.