Skip to content

Commit 5c5a751

Browse files
claudiamurialdoBeta Bot
authored andcommitted
Cherry pick branch 'genexuslabs:fix/cookie-secure' into beta
1 parent a7df910 commit 5c5a751

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

dotnet/src/dotnetframework/GxClasses/Core/GXApplication.cs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -3088,30 +3088,6 @@ public virtual string GetServerSchema()
30883088
return GXUri.UriSchemeHttp;
30893089
}
30903090
}
3091-
private bool FrontEndHttps()
3092-
{
3093-
if (CheckHeaderValue("Front-End-Https", "on") || CheckHeaderValue("X-Forwarded-Proto", "https"))
3094-
{
3095-
GXLogging.Debug(Logger, "Front-End-Https header activated");
3096-
return true;
3097-
}
3098-
else
3099-
{
3100-
return false;
3101-
}
3102-
}
3103-
private bool CheckHeaderValue(String headerName, String headerValue)
3104-
{
3105-
if (_HttpContext != null)
3106-
{
3107-
string httpsHeader = _HttpContext.Request.Headers[headerName];
3108-
if (!string.IsNullOrEmpty(httpsHeader) && httpsHeader.Equals(headerValue, StringComparison.OrdinalIgnoreCase))
3109-
{
3110-
return true;
3111-
}
3112-
}
3113-
return false;
3114-
}
31153091
public virtual string GetScriptPath()
31163092
{
31173093
try

0 commit comments

Comments
 (0)