diff options
| author | crobibero <cody@robibe.ro> | 2020-08-30 09:32:14 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-08-30 09:32:14 -0600 |
| commit | 3c0484cc9730c06892b996d0b884a05ecada07af (patch) | |
| tree | 5f16c6a08c6bc3e17b08449c913a7c3a180ee9e8 /MediaBrowser.Model/Configuration/ServerConfiguration.cs | |
| parent | 0424d09b8daf3626fd7de65b601e707afdb00599 (diff) | |
Allow for dynamic cors response
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 c66091f9d..a743277d7 100644 --- a/MediaBrowser.Model/Configuration/ServerConfiguration.cs +++ b/MediaBrowser.Model/Configuration/ServerConfiguration.cs @@ -265,6 +265,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[] { "*" }; } } |
