From 9761a84728ec91a3a1c8e100b8e09b5f0de52fe1 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Tue, 17 Nov 2020 14:34:06 -0500 Subject: [PATCH] add mi.akua to the known hosts for CORS --- backend/src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/backend/src/main.rs b/backend/src/main.rs index c56bf9d..8170f40 100644 --- a/backend/src/main.rs +++ b/backend/src/main.rs @@ -24,8 +24,11 @@ fn main() -> Result<()> { info!("{} starting up", APPLICATION_NAME); - let allowed_origins = - AllowedOrigins::some_exact(&["https://mi.within.website", "http://localhost:8000"]); + let allowed_origins = AllowedOrigins::some_exact(&[ + "https://mi.within.website", + "http://localhost:8000", + "http://mi.akua", + ]); // You can also deserialize this let cors = rocket_cors::CorsOptions {