app/controllers/phcscriptcdnpro/application_controller.rb in phcscriptcdnpro-1.13.0 vs app/controllers/phcscriptcdnpro/application_controller.rb in phcscriptcdnpro-2.0.0
- old
+ new
@@ -1,7 +1,10 @@
module Phcscriptcdnpro
class ApplicationController < ActionController::Base
+ # Security Filters
+ protect_from_forgery with: :exception
+
# AuthRocket User Helpers
def require_user
unless current_user
session[:last_url] = request.get? ? url_for(params) : url_for
redirect_to new_login_url