Skip to content

Commit

Permalink
disable Papertrail & Rack::Cors
Browse files Browse the repository at this point in the history
  • Loading branch information
did committed Aug 31, 2024
1 parent 62ca008 commit 18f8a4c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,20 +23,20 @@ class Application < Rails::Application

config.x.locomotive_search_backend = :algolia

config.middleware.insert_before 0, Rack::Cors do
allow do
origins '*'
resource '/assets/*', headers: :any, methods: :any
end
end
# config.middleware.insert_before 0, Rack::Cors do
# allow do
# origins '*'
# resource '/assets/*', headers: :any, methods: :any
# end
# end

# Steam
initializer 'station.steam', after: 'steam' do |app|
require 'locomotive/steam/middlewares/papertrail'
Locomotive::Steam.configure do |config|
config.middleware.insert_before Locomotive::Steam::Middlewares::Site, Locomotive::Steam::Middlewares::Papertrail
end
end
# initializer 'station.steam', after: 'steam' do |app|
# require 'locomotive/steam/middlewares/papertrail'
# Locomotive::Steam.configure do |config|
# config.middleware.insert_before Locomotive::Steam::Middlewares::Site, Locomotive::Steam::Middlewares::Papertrail
# end
# end

config.hosts << 'beta.locomotive.works'
config.hosts << ->(host) {
Expand Down

0 comments on commit 18f8a4c

Please sign in to comment.