diff options
| author | mo khan <mo@mokhan.ca> | 2015-02-09 20:40:06 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2015-02-09 20:40:06 -0700 |
| commit | 2b679683b19322a568225a69949e5d8ed61fe9a9 (patch) | |
| tree | c429152b92c4af7276b2c4e4daaf8be2fad4137e /app/controllers/application_controller.rb | |
| parent | 41c8858025eb14cab34635b058ccf761dd04eb90 (diff) | |
protect from forgery and cache ip and hostname on fake agent.
Diffstat (limited to 'app/controllers/application_controller.rb')
| -rw-r--r-- | app/controllers/application_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 209ec89..54093eb 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,7 +1,7 @@ class ApplicationController < ActionController::Base # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. - #protect_from_forgery with: :exception + protect_from_forgery with: :exception protected |
