diff --git a/src/Identity/Startup.cs b/src/Identity/Startup.cs index ddcf0103fc..dd52b0a37c 100644 --- a/src/Identity/Startup.cs +++ b/src/Identity/Startup.cs @@ -148,9 +148,10 @@ namespace Bit.Identity GlobalSettings globalSettings, ILogger 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(); });