diff options
| author | Anthony Lavado <anthony@lavado.ca> | 2020-09-07 19:41:45 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-07 19:41:45 -0400 |
| commit | d08ddbb8d29d3b7595c4309ad30a9ab5a0767bb1 (patch) | |
| tree | bdb52224d416050ef0546957663d84f3c6a4531c /Jellyfin.Server/Startup.cs | |
| parent | f43f72e6ce903fb60971575f6d19866d287f6317 (diff) | |
| parent | 342de39d78431503a0429b76e0ba9d3501b746db (diff) | |
Merge pull request #4013 from crobibero/dynamic-cors
Allow CORS domains to be configured
Diffstat (limited to 'Jellyfin.Server/Startup.cs')
| -rw-r--r-- | Jellyfin.Server/Startup.cs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Jellyfin.Server/Startup.cs b/Jellyfin.Server/Startup.cs index 597323b86..16629b5d9 100644 --- a/Jellyfin.Server/Startup.cs +++ b/Jellyfin.Server/Startup.cs @@ -5,7 +5,6 @@ using Jellyfin.Api.TypeConverters; using Jellyfin.Server.Extensions; using Jellyfin.Server.Implementations; using Jellyfin.Server.Middleware; -using Jellyfin.Server.Models; using MediaBrowser.Common.Net; using MediaBrowser.Controller; using MediaBrowser.Controller.Configuration; @@ -116,7 +115,7 @@ namespace Jellyfin.Server mainApp.UseResponseCompression(); - mainApp.UseCors(ServerCorsPolicy.DefaultPolicyName); + mainApp.UseCors(); if (_serverConfigurationManager.Configuration.RequireHttps && _serverApplicationHost.ListenWithHttps) |
