Skip to content

Commit 19cebd0

Browse files
The ValidateCsrf configuration was always true, regardless of the value at appsettings.json or web.config.
1 parent 80768f7 commit 19cebd0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -795,7 +795,7 @@ public class Preferences
795795
const string USE_NAMED_PARAMETERS = "UseNamedParameters";
796796
const string REST_DATES_WITH_MILLIS = "REST_DATES_WITH_MILLIS";
797797
internal const string YES = "1";
798-
const string NO = "0";
798+
internal const string NO = "0";
799799
static string defaultDatastore;
800800
const string DEFAULT_DS = "Default";
801801
static int httpclient_max_per_route = -1;

dotnet/src/dotnetframework/GxClasses/Helpers/GXRestUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static Dictionary<string, object> ReadRestBodyParameters(Stream stream)
142142

143143
internal static bool ValidateCsrfToken()
144144
{
145-
return Config.GetValueOf("ValidateCSRF", Preferences.YES) == Preferences.YES;
145+
return Config.GetValueOf("ValidateCSRF", Preferences.NO) == Preferences.YES;
146146
}
147147
}
148148
}

0 commit comments

Comments
 (0)