Skip to content

Commit

Permalink
Merge pull request #40 from chaspy/revert-cors
Browse files Browse the repository at this point in the history
Revert "Configure CROS"
  • Loading branch information
kamontia committed May 9, 2020
2 parents c48597b + d373fd8 commit 875a40b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 18 deletions.
3 changes: 0 additions & 3 deletions Gemfile
Expand Up @@ -36,9 +36,6 @@ group :development do
gem 'spring-watcher-listen', '~> 2.0.0'
end

# CORS
gem 'rack-cors'

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Expand Down
3 changes: 0 additions & 3 deletions Gemfile.lock
Expand Up @@ -123,8 +123,6 @@ GEM
puma (4.3.3)
nio4r (~> 2.0)
rack (2.2.2)
rack-cors (1.1.1)
rack (>= 2.0.0)
rack-proxy (0.6.5)
rack
rack-test (1.1.0)
Expand Down Expand Up @@ -220,7 +218,6 @@ DEPENDENCIES
omniauth-github
pg (>= 0.18, < 2.0)
puma (~> 4.1)
rack-cors
rails (~> 6.0.2, >= 6.0.2.2)
sass-rails (>= 6)
spring
Expand Down
12 changes: 0 additions & 12 deletions config/application.rb
Expand Up @@ -15,17 +15,5 @@ class Application < Rails::Application
# Application configuration can go into files in config/initializers
# -- all .rb files in that directory are automatically loaded after loading
# the framework and any gems in your application.

# CORS
config.middleware.insert_before 0, Rack::Cors do
allow do
origins "localhost:3000","herokuapp.com"
resource "*",
headers: :any,
methods: [:get, :patch, :put, :delete, :post, :options],
credentials: true
end
end

end
end

0 comments on commit 875a40b

Please sign in to comment.