aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-05-17 10:55:31 -0500
committerGitHub <noreply@github.com>2022-05-17 10:55:31 -0500
commit8ea2d8a4d88180a103081cce7a425c2bb6172b03 (patch)
tree7292443fa34f2cca21c432ed338d9013aa240d84 /src/slskd/Program.cs
parent978d0d08ab34a9e5dd0211de1d242a264b17577e (diff)
parentdaf5e72ad63109978eeef2d0c4377b942f6209cb (diff)
downloadslskd-8ea2d8a4d88180a103081cce7a425c2bb6172b03.tar.gz
Merge branch 'master' into dependabot/npm_and_yarn/src/web/ejs-3.1.8
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")));