aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 66fe9762..40e6e72d 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -471,10 +471,11 @@ namespace slskd
private static IServiceCollection ConfigureAspDotNetServices(this IServiceCollection services)
{
services.AddCors(options => options.AddPolicy("AllowAll", builder => builder
+ .SetIsOriginAllowed((host) => true)
.AllowAnyHeader()
.AllowAnyMethod()
- .SetIsOriginAllowed((host) => true)
- .AllowCredentials()));
+ .AllowCredentials()
+ .WithExposedHeaders("X-URL-Base")));
services.AddDataProtection()
.PersistKeysToFileSystem(new DirectoryInfo(Path.Combine(AppDirectory, "data", ".DataProtection-Keys")));