From ef2f827fed8270e64c8b313ad697d9aa2cf2f65b Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Thu, 22 Feb 2024 18:29:40 -0500 Subject: [PATCH] add extra localhost port to cors (storyteller studio) --- crates/lib/deprecated/http_server_common/src/cors.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/lib/deprecated/http_server_common/src/cors.rs b/crates/lib/deprecated/http_server_common/src/cors.rs index a72c17471..87e6cff9d 100644 --- a/crates/lib/deprecated/http_server_common/src/cors.rs +++ b/crates/lib/deprecated/http_server_common/src/cors.rs @@ -176,9 +176,8 @@ pub fn add_legacy_trumped(cors: Cors, is_production: bool) -> Cors { pub fn add_development_only(cors: Cors) -> Cors { cors // Local Development (Localhost) - .allowed_origin("http://localhost:12345") .allowed_origin("http://localhost:3000") - .allowed_origin("http://localhost:54321") + .allowed_origin("http://localhost:4200") .allowed_origin("http://localhost:5555") .allowed_origin("http://localhost:7000") .allowed_origin("http://localhost:7001") @@ -192,6 +191,8 @@ pub fn add_development_only(cors: Cors) -> Cors { .allowed_origin("http://localhost:7009") .allowed_origin("http://localhost:8000") .allowed_origin("http://localhost:8080") + .allowed_origin("http://localhost:12345") + .allowed_origin("http://localhost:54321") // Local Development (JungleHorse) .allowed_origin("http://api.jungle.horse") .allowed_origin("http://jungle.horse")