Permalink
Browse files

fixes the forwarder for Chrome

  • Loading branch information...
EiNSTeiN- committed Dec 18, 2013
1 parent d77756b commit 2b53a5cfbf6c9f7bdd5a9613b896af39f41e8311
Showing with 5 additions and 0 deletions.
  1. +5 −0 app/controllers/content_security_policy_controller.rb
@@ -27,6 +27,11 @@ def forward_params_to(forward_endpoint)
use_ssl(http)
end
+ if request.content_type == "application/csp-report"
+ request.body.rewind
+ params.merge!(ActiveSupport::JSON.decode(request.body.read))
+ end
+
ua = request.user_agent
xff = forwarded_for

0 comments on commit 2b53a5c

Please sign in to comment.