1
0
mirror of https://github.com/bitwarden/server.git synced 2024-12-24 17:17:40 +01:00

fix SetIdentityServerOrigin

This commit is contained in:
Kyle Spearrin 2020-08-31 16:19:34 -04:00
parent 41908b7b68
commit ed9599b9fc

View File

@ -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();
});