diff --git a/dotnet/src/dotnetframework/GxClasses/Helpers/CsrfHelper.cs b/dotnet/src/dotnetframework/GxClasses/Helpers/CsrfHelper.cs index 5b9490dbb..6da5f4545 100644 --- a/dotnet/src/dotnetframework/GxClasses/Helpers/CsrfHelper.cs +++ b/dotnet/src/dotnetframework/GxClasses/Helpers/CsrfHelper.cs @@ -12,6 +12,7 @@ namespace GeneXus.Http { internal class CSRFHelper { + [SecuritySafeCritical] internal static bool HandleException(Exception e, HttpContext httpContext) { if (RestAPIHelpers.ValidateCsrfToken()) @@ -20,6 +21,7 @@ internal static bool HandleException(Exception e, HttpContext httpContext) } return false; } + [SecuritySafeCritical] private static bool HandleExceptionImp(Exception e, HttpContext httpContext) { if (e is HttpAntiForgeryException)