Skip to content

Commit

Permalink
Merge pull request #209 from mlibrary/wide_open
Browse files Browse the repository at this point in the history
Wide open
  • Loading branch information
botimer authored Sep 23, 2024
2 parents 436321b + 6785397 commit fcd9536
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ gem "aws-sdk-s3", "~> 1.160"
gem "content_disposition", "~> 1.0"
gem "uppy-s3_multipart", "~> 1.2"

# CORS
gem 'rack-cors'

#####################################
# Try to work around brokenness on
Expand Down
4 changes: 4 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@
module Dromedary
class Application < Rails::Application

# CORS with rails running not-at-the-root turns out to be mostly broken.
# So we do this, which stinks.
config.action_controller.forgery_protection_origin_check = false

config.time_zone = 'Eastern Time (US & Canada)'

# Initialize configuration defaults for originally generated Rails version.
Expand Down
7 changes: 0 additions & 7 deletions config/initializers/cors.rb

This file was deleted.

0 comments on commit fcd9536

Please sign in to comment.