1
0
mirror of https://github.com/bitwarden/server synced 2025-12-15 15:53:59 +00:00

PM-13632: Add support for configuring multiple allowed origins (#6317)

* Add support for configuring multiple allowed origins

* Use if/else instead of union

* Add conditionals

* Added Chromium based extension ID's

* format

* Update src/Core/Constants.cs

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>

* remove chromedevelopmentid

* format

---------

Co-authored-by: Matt Bishop <mbishop@bitwarden.com>
This commit is contained in:
Anders Åberg
2025-10-06 16:15:05 +02:00
committed by GitHub
parent a15974029e
commit f75ad36770
3 changed files with 34 additions and 1 deletions

View File

@@ -103,6 +103,7 @@ public class GlobalSettings : IGlobalSettings
/// </summary>
public virtual string SendDefaultHashKey { get; set; }
public virtual string PricingUri { get; set; }
public virtual Fido2Settings Fido2 { get; set; } = new Fido2Settings();
public string BuildExternalUri(string explicitValue, string name)
{
@@ -772,4 +773,9 @@ public class GlobalSettings : IGlobalSettings
{
public string VapidPublicKey { get; set; }
}
public class Fido2Settings
{
public HashSet<string> Origins { get; set; }
}
}