Skip to content

Commit

Permalink
ActionDispatch::Static is not in the middleware stack in production
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Aug 31, 2024
1 parent b7c02e2 commit 0e17c97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
module Locomotiveapp
class Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults 7.0
config.load_defaults 7.1

config.autoload_paths << Rails.root.join('lib')

config.x.locomotive_search_backend = :algolia

config.middleware.insert_before ActionDispatch::Static, Rack::Cors do
config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '/assets/*', headers: :any, methods: :any
Expand Down

0 comments on commit 0e17c97

Please sign in to comment.