Luke Pulverenti пре 11 година
родитељ
комит
668fb072fa
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs

+ 1 - 1
MediaBrowser.Server.Implementations/HttpServer/HttpListenerHost.cs

@@ -95,7 +95,7 @@ namespace MediaBrowser.Server.Implementations.HttpServer
             container.Adapter = _containerAdapter;
             container.Adapter = _containerAdapter;
 
 
             Plugins.Add(new SwaggerFeature());
             Plugins.Add(new SwaggerFeature());
-            Plugins.Add(new CorsFeature());
+            Plugins.Add(new CorsFeature(allowedHeaders: "Content-Type, Authorization")); 
             HostContext.GlobalResponseFilters.Add(new ResponseFilter(_logger).FilterResponse);
             HostContext.GlobalResponseFilters.Add(new ResponseFilter(_logger).FilterResponse);
         }
         }