Allow for dynamic cors response

This commit is contained in:
crobibero
2020-08-30 09:32:14 -06:00
parent 0424d09b8d
commit 3c0484cc97
5 changed files with 115 additions and 18 deletions

View File

@@ -264,6 +264,11 @@ namespace MediaBrowser.Model.Configuration
/// </summary>
public long SlowResponseThresholdMs { get; set; }
/// <summary>
/// Gets or sets the cors hosts.
/// </summary>
public string[] CorsHosts { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="ServerConfiguration" /> class.
/// </summary>
@@ -372,6 +377,7 @@ namespace MediaBrowser.Model.Configuration
EnableSlowResponseWarning = true;
SlowResponseThresholdMs = 500;
CorsHosts = new[] { "*" };
}
}