From eb7a1c7bfd55b94898027354c6194425eac5e921 Mon Sep 17 00:00:00 2001 From: YoungHypo Date: Fri, 6 Dec 2024 12:35:47 -0800 Subject: [PATCH] change cors resource --- config/initializers/cors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/initializers/cors.rb b/config/initializers/cors.rb index 315c77c..1ca7c66 100644 --- a/config/initializers/cors.rb +++ b/config/initializers/cors.rb @@ -3,7 +3,7 @@ origins 'http://localhost:8000', /\Ahttp:\/\/.*\.elasticbeanstalk\.com\z/ - resource '*', + resource '/api/*', headers: :any, methods: [:get, :post, :put, :patch, :delete, :options, :head], credentials: true