From ce852eda8aeff1d42caa5d0f59b624f008a944cd Mon Sep 17 00:00:00 2001 From: Brandon Thomas Date: Fri, 12 Jan 2024 15:51:50 -0500 Subject: [PATCH] netlify feature branch cors --- crates/lib/deprecated/http_server_common/src/cors.rs | 2 ++ .../src/http_server/endpoints/weights/get_weight.rs | 2 +- .../src/http_server/endpoints/weights/list_weights_by_user.rs | 2 +- 3 files changed, 4 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 95f51ff0e9..a72c174710 100644 --- a/crates/lib/deprecated/http_server_common/src/cors.rs +++ b/crates/lib/deprecated/http_server_common/src/cors.rs @@ -59,6 +59,8 @@ pub fn add_fakeyou(cors: Cors, is_production: bool) -> Cors { // FakeYou (Staging) .allowed_origin("http://staging.fakeyou.com") .allowed_origin("https://staging.fakeyou.com") + // FakeYou (Netlify Staging / Production) + .allowed_origin("https://feature-mvp--fakeyou.netlify.app") } else { cors // FakeYou (Development) diff --git a/crates/service/web/storyteller_web/src/http_server/endpoints/weights/get_weight.rs b/crates/service/web/storyteller_web/src/http_server/endpoints/weights/get_weight.rs index 4197638c5b..28f1500449 100644 --- a/crates/service/web/storyteller_web/src/http_server/endpoints/weights/get_weight.rs +++ b/crates/service/web/storyteller_web/src/http_server/endpoints/weights/get_weight.rs @@ -42,7 +42,7 @@ pub struct GetWeightResponse { file_checksum_sha2: String, /// Information about the cover image. - pub cover_image: CoverImageDetails, + cover_image: CoverImageDetails, /// Cover images are small descriptive images that can be set for any model. /// If a cover image is set, this is the path to the asset. diff --git a/crates/service/web/storyteller_web/src/http_server/endpoints/weights/list_weights_by_user.rs b/crates/service/web/storyteller_web/src/http_server/endpoints/weights/list_weights_by_user.rs index 08ec39718b..b73e722da8 100644 --- a/crates/service/web/storyteller_web/src/http_server/endpoints/weights/list_weights_by_user.rs +++ b/crates/service/web/storyteller_web/src/http_server/endpoints/weights/list_weights_by_user.rs @@ -41,7 +41,7 @@ pub struct Weight { file_checksum_sha2: String, /// Information about the cover image. - pub cover_image: CoverImageDetails, + cover_image: CoverImageDetails, /// Cover images are small descriptive images that can be set for any model. /// If a cover image is set, this is the path to the asset.