diff --git a/app/controllers/cloudtasker/application_controller.rb b/app/controllers/cloudtasker/application_controller.rb index d2f82aa0..dfe6e86a 100644 --- a/app/controllers/cloudtasker/application_controller.rb +++ b/app/controllers/cloudtasker/application_controller.rb @@ -3,6 +3,5 @@ module Cloudtasker # Base Cloudtasker controller class ApplicationController < ActionController::Base - skip_before_action :verify_authenticity_token end end diff --git a/app/controllers/cloudtasker/worker_controller.rb b/app/controllers/cloudtasker/worker_controller.rb index c4cfa72e..c0a28abc 100644 --- a/app/controllers/cloudtasker/worker_controller.rb +++ b/app/controllers/cloudtasker/worker_controller.rb @@ -3,6 +3,8 @@ module Cloudtasker # Handle execution of workers class WorkerController < ApplicationController + skip_before_action :verify_authenticity_token, raise: false + # Authenticate all requests. before_action :authenticate!