From 16a9a5f7cc7c0a22e916db5acc6b9ee43afd63c0 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 6 Apr 2020 22:01:03 +0200 Subject: [PATCH] Finishing CORS for IS --- Kyoo/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kyoo/Startup.cs b/Kyoo/Startup.cs index 3ff8a558..0c0e3131 100644 --- a/Kyoo/Startup.cs +++ b/Kyoo/Startup.cs @@ -110,7 +110,7 @@ namespace Kyoo services.AddSingleton(new DefaultCorsPolicyService(_loggerFactory.CreateLogger()) { - AllowedOrigins = { new Uri(publicUrl).Authority } + AllowedOrigins = { new Uri(publicUrl).GetLeftPart(UriPartial.Authority) } }); services.AddScoped();