diff --git a/Gemfile b/Gemfile index e2ad97c..6dd5a6f 100644 --- a/Gemfile +++ b/Gemfile @@ -26,6 +26,7 @@ gem 'bootsnap', '>= 1.1.0', require: false # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible # gem 'rack-cors' +gem 'rack-cors', :require => 'rack/cors' group :production do gem 'pg' diff --git a/Gemfile.lock b/Gemfile.lock index 4a0d376..13df4ae 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -78,6 +78,7 @@ GEM pg (1.1.3) puma (3.12.0) rack (2.0.5) + rack-cors (1.0.2) rack-test (1.1.0) rack (>= 1.0, < 3) rails (5.2.1) @@ -139,6 +140,7 @@ DEPENDENCIES listen (>= 3.0.5, < 3.2) pg puma (~> 3.11) + rack-cors rails (~> 5.2.1) spring spring-watcher-listen (~> 2.0.0)