diff --git a/Gemfile b/Gemfile index a28550b0d..df901b1e9 100644 --- a/Gemfile +++ b/Gemfile @@ -41,7 +41,7 @@ gem 'pg', '~> 1.4' gem 'pg_search' gem 'puma', '~> 6.1.1' gem 'pundit', '~> 2.3.0' -gem 'rack-cors', '~> 1.0', require: 'rack/cors' +gem 'rack-cors', '~> 2.0', require: 'rack/cors' if next? gem 'rails', '~> 6.1' else diff --git a/Gemfile.lock b/Gemfile.lock index d764841c9..d6cb2c5ca 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -346,7 +346,7 @@ GEM raabro (1.4.0) racc (1.6.2) rack (2.2.6.4) - rack-cors (1.1.1) + rack-cors (2.0.0) rack (>= 2.0.0) rack-protection (2.2.2) rack @@ -564,7 +564,7 @@ DEPENDENCIES pry puma (~> 6.1.1) pundit (~> 2.3.0) - rack-cors (~> 1.0) + rack-cors (~> 2.0) rails (~> 6.0) ranked-model (~> 0.4.8) restpack_serializer!