From d373fd809c27db59fe54b5b79f417c31fb4d7aa8 Mon Sep 17 00:00:00 2001 From: kondo takeshi Date: Sun, 10 May 2020 00:00:01 +0900 Subject: [PATCH] Revert "Configure CROS" This reverts commit 282e219897ece485bf26cdab5aee20f25e377ca0. --- Gemfile | 3 --- Gemfile.lock | 3 --- config/application.rb | 12 ------------ 3 files changed, 18 deletions(-) diff --git a/Gemfile b/Gemfile index aefe4fa..79bf76b 100644 --- a/Gemfile +++ b/Gemfile @@ -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] diff --git a/Gemfile.lock b/Gemfile.lock index c0b057c..8828ad3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -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) @@ -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 diff --git a/config/application.rb b/config/application.rb index fc039e3..c3c2caa 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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