mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-12-16 04:23:31 +00:00
Update WelsonJS.Augmented/Catswords.Phantomizer/AssemblyLoader.cs
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
parent
5665de20cf
commit
f49f847cb1
|
|
@ -274,6 +274,17 @@ namespace Catswords.Phantomizer
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds an allowed URI scheme for assembly and module loading.
|
||||
/// Only HTTP and HTTPS schemes are supported. HTTPS is the default.
|
||||
/// Adding HTTP reduces security and will log a warning.
|
||||
/// </summary>
|
||||
/// <param name="scheme">The URI scheme to allow (e.g., "http" or "https"). Trailing colons are automatically removed.</param>
|
||||
/// <exception cref="ArgumentNullException">Thrown when <paramref name="scheme"/> is null or whitespace.</exception>
|
||||
/// <exception cref="ArgumentException">Thrown when the scheme is invalid or not HTTP/HTTPS.</exception>
|
||||
/// <remarks>
|
||||
/// This method is thread-safe and can be called before Register() or LoadNativeModules().
|
||||
/// </remarks>
|
||||
public static void AddAllowedUriScheme(string scheme)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(scheme))
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user