diff options
| author | JP Dillingham <jp@dillingham.me> | 2022-05-17 10:48:25 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-17 10:48:25 -0500 |
| commit | daf5e72ad63109978eeef2d0c4377b942f6209cb (patch) | |
| tree | e8352bbd18330aa460f10f439f685020a532e763 /src/slskd/Program.cs | |
| parent | 818fb3570a37fca031c3f1ec665cb6eda2619448 (diff) | |
| parent | c775d1415b393387b99c6e1ba108bb836d92ae2b (diff) | |
| download | slskd-daf5e72ad63109978eeef2d0c4377b942f6209cb.tar.gz | |
Merge pull request #467 from slskd/search-list
Redesign Search views
Diffstat (limited to 'src/slskd/Program.cs')
| -rw-r--r-- | src/slskd/Program.cs | 5 |
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"))); |
