Update AssemblyLoader.cs (Catswords.Phantomizer)

Update AssemblyLoader.cs (Catswords.Phantomizer)
This commit is contained in:
Namhyeon, Go 2025-12-14 20:45:59 +09:00
parent 17e3c8df46
commit 5665de20cf

View File

@ -288,6 +288,10 @@ namespace Catswords.Phantomizer
if (!Uri.CheckSchemeName(scheme))
throw new ArgumentException("Invalid URI scheme name.", nameof(scheme));
if (!scheme.Equals(Uri.UriSchemeHttps, StringComparison.OrdinalIgnoreCase) &&
!scheme.Equals(Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase))
throw new ArgumentException("Only HTTPS or HTTP schemes are supported.", nameof(scheme));
if (scheme.Equals(Uri.UriSchemeHttp, StringComparison.OrdinalIgnoreCase))
Trace.TraceWarning("Warning: Adding 'http' to allowed URI schemes reduces security.");