mirror of
https://github.com/bitwarden/server.git
synced 2024-12-23 17:07:42 +01:00
fix SetIdentityServerOrigin
This commit is contained in:
parent
41908b7b68
commit
ed9599b9fc
@ -148,9 +148,10 @@ namespace Bit.Identity
|
||||
GlobalSettings globalSettings,
|
||||
ILogger<Startup> logger)
|
||||
{
|
||||
var identityUri = new Uri(globalSettings.BaseServiceUri.Identity);
|
||||
app.Use(async (ctx, next) =>
|
||||
{
|
||||
ctx.SetIdentityServerOrigin(globalSettings.BaseServiceUri.Identity);
|
||||
ctx.SetIdentityServerOrigin($"{identityUri.Scheme}://{identityUri.Host}");
|
||||
await next();
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user