2022-05-26 10:47:31 +00:00
|
|
|
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; }
|
|
|
|
|
}
|
|
|
|
|
}
|