Skip to content

Commit

Permalink
change application.rb of deleting cors setting
Browse files Browse the repository at this point in the history
  • Loading branch information
YoungHypo committed Dec 7, 2024
1 parent 261a45d commit cadef04
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class Application < Rails::Application
# not contain `.rb` files, or that should not be reloaded or eager loaded.
# Common ones are `templates`, `generators`, or `middleware`, for example.
config.autoload_lib(ignore: %w[assets tasks])
config.action_view.embed_authenticity_token_in_remote_forms = true

# Configuration for the application, engines, and railties goes here.
#
Expand All @@ -39,9 +38,5 @@ class Application < Rails::Application

# Don't generate system test files.
config.generators.system_tests = nil

# allow cross-origin requests to include cookies
config.action_controller.allow_forgery_protection = false
config.action_controller.default_protect_from_forgery = false
end
end

0 comments on commit cadef04

Please sign in to comment.