From 4b159639a97a05e8bef766916560f2b697faf16d Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Mon, 20 Feb 2023 20:03:38 -0600 Subject: AƱade rack-cors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Gemfile | 2 +- Gemfile.lock | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index ecaa713..551fdc7 100644 --- a/Gemfile +++ b/Gemfile @@ -36,7 +36,7 @@ gem 'bootsnap', require: false # gem "image_processing", "~> 1.2" # Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible -# gem "rack-cors" +gem 'rack-cors' # JSON serializer. gem 'jsonapi-serializer' diff --git a/Gemfile.lock b/Gemfile.lock index ad99571..a623c5a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -111,6 +111,8 @@ GEM nio4r (~> 2.0) racc (1.6.2) rack (2.2.6.2) + rack-cors (2.0.0) + rack (>= 2.0.0) rack-test (2.0.2) rack (>= 1.3) rails (7.0.4.2) @@ -175,6 +177,7 @@ DEPENDENCIES jsonapi-serializer mysql2 puma (~> 5.0) + rack-cors rails (~> 7.0.4, >= 7.0.4.2) rspec-rails (~> 6.0.0) tzinfo-data -- cgit v1.2.3