mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #22508 from y-yagi/remove_request_forgery_protection_from_rails_api
remove `request_forgery_protection` initializer from rails api
This commit is contained in:
commit
ba1bfa7a54
2 changed files with 2 additions and 0 deletions
|
@ -303,6 +303,7 @@ module Rails
|
|||
if options[:api]
|
||||
remove_file 'config/initializers/session_store.rb'
|
||||
remove_file 'config/initializers/cookies_serializer.rb'
|
||||
remove_file 'config/initializers/request_forgery_protection.rb'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -89,6 +89,7 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase
|
|||
config/initializers/assets.rb
|
||||
config/initializers/cookies_serializer.rb
|
||||
config/initializers/session_store.rb
|
||||
config/initializers/request_forgery_protection.rb
|
||||
lib/assets
|
||||
vendor/assets
|
||||
test/helpers
|
||||
|
|
Loading…
Reference in a new issue