Permalink
Browse files

Protect upmin controllers from CSRF attacks

  • Loading branch information...
jsyeo committed Mar 31, 2016
1 parent 499501b commit e4e31251723fbbfbfa012a4cc48e5fbdf66794a9
Showing with 5 additions and 0 deletions.
  1. +5 −0 app/controllers/upmin/application_controller.rb
@@ -1,4 +1,9 @@
module Upmin
class ApplicationController < ActionController::Base
if ::Rails.version.to_i < 4
protect_from_forgery
else
protect_from_forgery with: :exception
end
end
end

0 comments on commit e4e3125

Please sign in to comment.