From 814209949ecef87f8fad0a3fb594e7a7d3169bb1 Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 23 Feb 2024 22:21:39 -0500 Subject: [PATCH] fix storyteller engine cors --- crates/lib/deprecated/http_server_common/src/cors.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/lib/deprecated/http_server_common/src/cors.rs b/crates/lib/deprecated/http_server_common/src/cors.rs index 87e6cff9d0..e078628132 100644 --- a/crates/lib/deprecated/http_server_common/src/cors.rs +++ b/crates/lib/deprecated/http_server_common/src/cors.rs @@ -56,6 +56,8 @@ pub fn add_fakeyou(cors: Cors, is_production: bool) -> Cors { .allowed_origin("http://fakeyou.com") .allowed_origin("https://api.fakeyou.com") .allowed_origin("https://fakeyou.com") + // Storyteller Engine (Production) + .allowed_origin("https://engine.fakeyou.com") // FakeYou (Staging) .allowed_origin("http://staging.fakeyou.com") .allowed_origin("https://staging.fakeyou.com") @@ -72,6 +74,8 @@ pub fn add_fakeyou(cors: Cors, is_production: bool) -> Cors { .allowed_origin("https://dev.fakeyou.com:7000") // Yarn default port .allowed_origin("https://dev.fakeyou.com:7001") // NB: Mac frontend .allowed_origin("https://development.fakeyou.com") + // Storyteller Engine (Development) + .allowed_origin("https://engine.fakeyou.com") // NB: We use prod for integration testing } }