Finishing CORS for IS

This commit is contained in:
Zoe Roux 2020-04-06 22:01:03 +02:00
parent 9b12495a94
commit 16a9a5f7cc

View File

@ -110,7 +110,7 @@ namespace Kyoo
services.AddSingleton<ICorsPolicyService>(new DefaultCorsPolicyService(_loggerFactory.CreateLogger<DefaultCorsPolicyService>())
{
AllowedOrigins = { new Uri(publicUrl).Authority }
AllowedOrigins = { new Uri(publicUrl).GetLeftPart(UriPartial.Authority) }
});
services.AddScoped<ILibraryManager, LibraryManager>();