Merge pull request #4013 from crobibero/dynamic-cors

Allow CORS domains to be configured
This commit is contained in:
Anthony Lavado
2020-09-07 19:41:45 -04:00
committed by GitHub
5 changed files with 61 additions and 37 deletions

View File

@@ -263,6 +263,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[] { "*" };
}
}