mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
docs for XSSHeader
This commit is contained in:
parent
50f25adadb
commit
defd82d025
1 changed files with 8 additions and 0 deletions
|
@ -2,6 +2,14 @@ require 'rack/protection'
|
|||
|
||||
module Rack
|
||||
module Protection
|
||||
##
|
||||
# Sets X-XSS-Protection header to tell the browser to block attacks.
|
||||
#
|
||||
# Prevented attack:: Non-permanent XSS
|
||||
# Supported browsers:: Internet Explorer >= 8
|
||||
#
|
||||
# Options:
|
||||
# xss_mode:: How the browser should prevent the attack (default: `:block`)
|
||||
class XSSHeader < Base
|
||||
default_options :xss_mode => :block
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue