diff options
| author | JP Dillingham <jp@dillingham.me> | 2026-11-24 14:05:58 -0600 |
|---|---|---|
| committer | JP Dillingham <jp@dillingham.me> | 2026-11-24 14:05:58 -0600 |
| commit | 3d1a57c1b3bd22bdd480172d23c8b6fd350275a1 (patch) | |
| tree | a797e73c89e42306e0121b573955726e2768eedb | |
| parent | 5129a0db393974cd82cd54ec16897ba201baaea5 (diff) | |
| download | slskd-3d1a57c1b3bd22bdd480172d23c8b6fd350275a1.tar.gz | |
require restart for cors options
| -rw-r--r-- | src/slskd/Core/Options.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/slskd/Core/Options.cs b/src/slskd/Core/Options.cs index 88301098..8c22eab7 100644 --- a/src/slskd/Core/Options.cs +++ b/src/slskd/Core/Options.cs @@ -2403,6 +2403,7 @@ namespace slskd [Argument(default, "cors-allowed-origins")] [EnvironmentVariable("CORS_ALLOWED_ORIGINS")] [Description("list of allowed CORS origins")] + [RequiresRestart] public string[] AllowedOrigins { get; init; } = null; /// <summary> @@ -2411,6 +2412,7 @@ namespace slskd [Argument(default, "cors-allow-credentials")] [EnvironmentVariable("CORS_ALLOW_CREDENTIALS")] [Description("allow CORS credentials for allowed origins")] + [RequiresRestart] public bool AllowCredentials { get; init; } = false; public IEnumerable<ValidationResult> Validate(ValidationContext validationContext) |
