From 96ae66dbe40e2272da537eb95dd23b090860360b Mon Sep 17 00:00:00 2001 From: Ainley <43100685+AinleyP@users.noreply.github.com> Date: Thu, 13 Feb 2020 19:26:07 -0500 Subject: [PATCH] fixes to cors (#40) --- .env.development.local.template | 2 +- config/initializers/environment.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.env.development.local.template b/.env.development.local.template index 190c497..75b2d57 100644 --- a/.env.development.local.template +++ b/.env.development.local.template @@ -1,4 +1,4 @@ -CORS_ORIGIN=http://localhost:5000 +CORS_ORIGIN=http://localhost:3000 SEED_USER_EMAIL=test@test.com SEED_USER_PASSWORD=password DEVISE_JWT_SECRET_KEY=super_secret_secret_key diff --git a/config/initializers/environment.rb b/config/initializers/environment.rb index 9c21adb..3224512 100644 --- a/config/initializers/environment.rb +++ b/config/initializers/environment.rb @@ -13,6 +13,6 @@ ENV['DB_ADAPTER_DEV'] = 'postgresql' ENV['DB_ENCODING_DEV'] = 'utf8' ENV['RAILS_MAX_THREADS_DEV'] = '5' - ENV['CORS_ORIGIN'] = 'http://localhost:5000' + ENV['CORS_ORIGIN'] = 'http://localhost:3000' ENV['DB_NAME_TEST'] = 'sdc_test' end