Skip to content

Commit 8261a62

Browse files
Potential fix for code scanning alert no. 22: CSRF protection not enabled
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent f890d48 commit 8261a62

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

spec/apps/yabeda-mini/app.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ class Post < ActiveRecord::Base
101101

102102
# Controllers
103103
class ApplicationController < ActionController::API
104+
include ActionController::RequestForgeryProtection
105+
protect_from_forgery with: :exception
104106
around_action :track_metrics
105107

106108
private

0 commit comments

Comments
 (0)