diff --git a/Gemfile b/Gemfile index 2f0a913a6..ea79f0065 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 1c8d08de4..6abab1afa 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -349,7 +349,7 @@ GEM raabro (1.4.0) racc (1.6.2) rack (2.2.6.4) - rack-cors (1.1.1) + rack-cors (2.0.1) rack (>= 2.0.0) rack-protection (3.0.5) rack @@ -565,7 +565,7 @@ DEPENDENCIES pry puma (~> 6.1.1) pundit (~> 2.3.0) - rack-cors (~> 1.0) + rack-cors (~> 2.0) rails (~> 6.1) ranked-model (~> 0.4.8) restpack_serializer!