diff options
| author | crobibero <cody@robibe.ro> | 2020-09-09 12:02:05 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-09-09 12:02:05 -0600 |
| commit | 612e135c8c2b349e904bc555435bfc0977ed80d0 (patch) | |
| tree | 8093307690ac8f1be6b08daa9042badad02b29f7 /MediaBrowser.Model/Configuration/ServerConfiguration.cs | |
| parent | eab92a0b0124c2e89a8e11d4d6a8031f17834e36 (diff) | |
| parent | b76d4ba454c43cc6293b733f2bba363e34a9bf5e (diff) | |
Merge remote-tracking branch 'upstream/master' into api-stream-return
Diffstat (limited to 'MediaBrowser.Model/Configuration/ServerConfiguration.cs')
| -rw-r--r-- | MediaBrowser.Model/Configuration/ServerConfiguration.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/MediaBrowser.Model/Configuration/ServerConfiguration.cs b/MediaBrowser.Model/Configuration/ServerConfiguration.cs index 97748bd0c..68dc1cc83 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -264,6 +264,11 @@ namespace MediaBrowser.Model.Configuration 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> public ServerConfiguration() @@ -372,6 +377,7 @@ namespace MediaBrowser.Model.Configuration EnableSlowResponseWarning = true; SlowResponseThresholdMs = 500; + CorsHosts = new[] { "*" }; } } |
