From 8dee51445d15b621952442afefae4890ae96488a Mon Sep 17 00:00:00 2001 From: Christian Meier Date: Fri, 21 Feb 2014 12:45:13 +0000 Subject: [PATCH] fix copy and paste error on excluding content_security_policy as default --- rack-protection/lib/rack/protection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rack-protection/lib/rack/protection.rb b/rack-protection/lib/rack/protection.rb index cfde49a3..6b8ab9d0 100644 --- a/rack-protection/lib/rack/protection.rb +++ b/rack-protection/lib/rack/protection.rb @@ -26,7 +26,7 @@ module Rack use ::Rack::Protection::RemoteReferrer, options if use_these.include? :remote_referrer use ::Rack::Protection::AuthenticityToken, options if use_these.include? :authenticity_token use ::Rack::Protection::FormToken, options if use_these.include? :form_token - use ::Rack::Protection::ContentSecurityPolicy, options unless except.include? :frame_options + use ::Rack::Protection::ContentSecurityPolicy, options unless except.include? :content_security_policy use ::Rack::Protection::FrameOptions, options unless except.include? :frame_options use ::Rack::Protection::HttpOrigin, options unless except.include? :http_origin use ::Rack::Protection::IPSpoofing, options unless except.include? :ip_spoofing