Skip to content

Commit

Permalink
Update attack protection documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jkowens committed Aug 8, 2016
1 parent 1c62300 commit d5eaa96
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2111,7 +2111,14 @@ set :protection, :except => [:path_traversal, :session_hijacking]
```
By default, Sinatra will only set up session based protection if `:sessions`
have been enabled. See 'Using Sessions'.
have been enabled. See 'Using Sessions'. Sometimes you may want to set up
sessions "outside" of the Sinatra app, such as in the config.ru or with a
separate Rack::Builder instance. In that case you can still set up session
based protections by passing the `:session` option:
```ruby
set :protection, :session => true
```
### Available Settings
Expand Down

0 comments on commit d5eaa96

Please sign in to comment.