Skip to content

Commit

Permalink
Merge pull request #1375 from alphagov/sengi/csrf
Browse files Browse the repository at this point in the history
Fix CWE-352 CSRF protection weakness.
  • Loading branch information
sengi authored Jan 25, 2024
2 parents de57050 + 1e65fb7 commit d21e41d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class ApplicationController < ActionController::Base

before_action :authenticate_user!

protect_from_forgery
protect_from_forgery with: :exception

def error_400
error 400
Expand Down

0 comments on commit d21e41d

Please sign in to comment.