Adds and configures rack protection gem

This commit is contained in:
Hagen Schink
2013-10-28 16:14:03 +01:00
committed by Michael Frister
parent 978d319acb
commit 71146d90fc
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -72,6 +72,8 @@ gem 'oj'
# will need to be removed once we are on rails4 as it will be part of the rails4 core
gem 'strong_parameters'
gem 'rack-protection'
group :production do
# we use dalli as standard memcache client remove this if you don't
# requires memcached 1.4+
+1
View File
@@ -29,4 +29,5 @@
# This file is used by Rack-based servers to start the application.
require ::File.expand_path('../config/environment', __FILE__)
use Rack::Protection::JsonCsrf
run OpenProject::Application