Merge pull request #13900 from umbraco/v10/bugfix/12200
Add allowlist of media hosts.
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user