Merge pull request #13900 from umbraco/v10/bugfix/12200

Add allowlist of media hosts.
This commit is contained in:
Bjarke Berg
2023-03-02 14:34:05 +01:00
committed by GitHub
2 changed files with 52 additions and 4 deletions

View File

@@ -262,4 +262,9 @@ public class ContentSettings
/// </summary>
[DefaultValue(StaticDisallowedUploadFiles)]
public string[] DisallowedUploadedFileExtensions { get; set; } = StaticDisallowedUploadFiles.Split(',');
/// <summary>
/// Gets or sets the allowed external host for media. If empty only relative paths are allowed.
/// </summary>
public string[] AllowedMediaHosts { get; set; } = Array.Empty<string>();
}