elsa-core/src/modules/Elsa.JavaScript/Options/JintOptions.cs

18 lines
738 B
C#
Raw Normal View History

namespace Elsa.JavaScript.Options
2022-01-12 10:43:46 +00:00
{
public class JintOptions
{
/// <summary>
/// Enables access to any .NET class. Do not enable if you are executing workflows from untrusted sources (e.g. user defined workflows).
///
/// See Jint docs for more: https://github.com/sebastienros/jint#accessing-net-assemblies-and-classes
/// </summary>
public bool AllowClrAccess { get; set; }
/// <summary>
/// Enables access to .NET configuration via the <c>getConfig</c> function.
/// Do not enable if you are executing workflows from untrusted sources (e.g user defined workflows).
/// </summary>
public bool AllowConfigurationAccess { get; set; }
}
}