update domain checks for InternalApi baseUrl and improve error details in RoleApplication

This commit is contained in:
2025-11-27 12:16:55 +03:30
parent 9d0bb7df0e
commit 3526fdbf2f
2 changed files with 4 additions and 3 deletions

View File

@@ -357,11 +357,11 @@ if (host.Contains("localhost"))
{
baseUrl = builder.Configuration["InternalApi:Local"];
}
else if (host.Contains("dadmehrg.ir"))
else if (host.Contains("dadmehrg"))
{
baseUrl = builder.Configuration["InternalApi:Dadmehrg"];
}
else if (host.Contains("gozareshgir.ir"))
else if (host.Contains("gozareshgir"))
{
baseUrl = builder.Configuration["InternalApi:Gozareshgir"];
}