summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-05-01 11:58:29 -0600
committerHombreLaser <sebastian-440@live.com>2023-05-01 11:58:29 -0600
commit027cfdfac140fd5f44dbf952b532b27538e559fe (patch)
treee44a3307a3d89dd13965ef475f314a7dbdd9b22b /config/initializers
parent01e8e5d12a7bc2ced74701cf7ce6899d1ccf0cd8 (diff)
Añade políticas CORS
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/cors.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb
index 0763c0c..bb5216b 100644
--- a/config/initializers/cors.rb
+++ b/config/initializers/cors.rb
@@ -8,10 +8,8 @@
Rails.application.config.middleware.insert_before 0, Rack::Cors do
allow do
- origins 'localhost:3000', '127.0.0.1:3000'
+ origins 'localhost:5173', '127.0.0.1:5173'
- resource "*",
- headers: :any,
- methods: [:get, :post, :put, :patch, :delete, :options, :head]
+ resource '*', headers: :any, methods: %i[get post put patch delete options head]
end
end