summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-02-20 20:03:38 -0600
committerHombreLaser <sebastian-440@live.com>2023-02-20 20:03:38 -0600
commit4b159639a97a05e8bef766916560f2b697faf16d (patch)
tree836dba60abad1c5cd4a8b54111eae083137c5867
parenta7a0544156a6299f1933c234f172b6b768b06cad (diff)
Añade rack-cors
-rw-r--r--Gemfile2
-rw-r--r--Gemfile.lock3
2 files changed, 4 insertions, 1 deletions
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