Skip to content

Commit

Permalink
Merge pull request #272 from aleksei-burlakov/protect_from_forgery
Browse files Browse the repository at this point in the history
Enforse CSRF in errors_controller.rb
  • Loading branch information
aleksei-burlakov authored Nov 14, 2023
2 parents 20ee324 + f9b76fe commit b482c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hawk/app/controllers/errors_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See COPYING for license.

class ErrorsController < ActionController::Base
protect_from_forgery with: :null_session
protect_from_forgery with: :exception

def not_found
respond_to do |format|
Expand Down

0 comments on commit b482c8c

Please sign in to comment.