No commit activity in last 3 years
No release in over 3 years
This gem disables the X-XSS-Protection header which Action Dispatch sets by default.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
 Project Readme

ActionDispatch::DisableXXssProtection

Build Status

Disables the X-XSS-Protection header which Action Dispatch sets by default

This gem disables the X-XSS-Protection header which Action Dispatch sets as 1; mode=block by default. Applications always return X-XSS-Protection: 0 after installing this gem.

Usage

All you need is to add this gem to your application's Gemfile:

gem 'action_dispatch-disable_x_xss_protection'

And then execute:

$ bundle

Assumed that a server has started by bin/rails s:

# before installing this gem
$ curl -sI http://localhost:3000 | grep X-XSS-Protection
X-XSS-Protection: 1; mode=block

# after installing this gem
$ curl -sI http://localhost:3000 | grep X-XSS-Protection
X-XSS-Protection: 0

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/pepabo/action_dispatch-disable_x_xss_protection.

License

The gem is available as open source under the terms of the MIT License.