The Free Software Media System - Server Backend & API
updated cors feature
Luke Pulverenti668fb072fa15
diff --git a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.csindex 1a77985e40..54fb345eb4 100644--- a/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs+++ b/MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs@@ -95,7 +95,7 @@ namespace MediaBrowser.Server.Implementations.HttpServercontainer.Adapter = _containerAdapter;Plugins.Add(new SwaggerFeature());- Plugins.Add(new CorsFeature());+ Plugins.Add(new CorsFeature(allowedHeaders: "Content-Type, Authorization"));HostContext.GlobalResponseFilters.Add(new ResponseFilter(_logger).FilterResponse);}