summaryrefslogtreecommitdiff
path: root/config/initializers
diff options
context:
space:
mode:
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