Vulnerability in EPiServer.Forms
We added code from this document https://world.optimizely.com/documentation/developer-guides/archive/dxp-cloud-services/development-considerations/environment-configurations/ to know the environment during runtime and act according but that's not working as expected. Just to test if we change the environment name from Azure App Service it's not working as expected.
private static bool GetAzureEnvironmentConfiguration()
var appSettings = ConfigurationManager.AppSettings;
var environmentName = appSettings["episerver:EnvironmentName"];
bool isIntegrationOrPreproduction = false;
if (environmentName == null || environmentName.Equals("Integration") || environmentName.Equals("Preproduction"))
isIntegrationOrPreproduction = true;
This means code can't integrate with Azure app service during run time? Can anybody help with this issue.
Did you add the episerver:EnvironmentName keys to each of your Integration, Preproduction and Production web configs?
Yes we have it for all the three environments.
DId you try to debug to see which value environmentName has? Perhaps it's case sensitivity issue?