From 9dc0c99e77563bc13f7c7d74800e1770609b2d1c Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Thu, 5 Jan 2023 22:05:52 +0500 Subject: [PATCH] common: set default value for NOTESNOOK_CORS_ORIGINS --- Streetwriters.Common/Constants.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Streetwriters.Common/Constants.cs b/Streetwriters.Common/Constants.cs index 0868195..3e43916 100644 --- a/Streetwriters.Common/Constants.cs +++ b/Streetwriters.Common/Constants.cs @@ -75,6 +75,6 @@ namespace Streetwriters.Common public static string SUBSCRIPTIONS_SERVER_DOMAIN => Environment.GetEnvironmentVariable("SUBSCRIPTIONS_SERVER_DOMAIN"); public static string SUBSCRIPTIONS_CERT_PATH => Environment.GetEnvironmentVariable("SUBSCRIPTIONS_CERT_PATH"); public static string SUBSCRIPTIONS_CERT_KEY_PATH => Environment.GetEnvironmentVariable("SUBSCRIPTIONS_CERT_KEY_PATH"); - public static string[] NOTESNOOK_CORS_ORIGINS => Environment.GetEnvironmentVariable("NOTESNOOK_CORS")?.Split(","); + public static string[] NOTESNOOK_CORS_ORIGINS => Environment.GetEnvironmentVariable("NOTESNOOK_CORS")?.Split(",") ?? new string[] { }; } } \ No newline at end of file