diff --git a/BFF/src/Host/Internal/StrictSameSiteExternalAuthenticationMiddleware.cs b/BFF/src/Host/Internal/StrictSameSiteExternalAuthenticationMiddleware.cs index 679643a..b3f8451 100644 --- a/BFF/src/Host/Internal/StrictSameSiteExternalAuthenticationMiddleware.cs +++ b/BFF/src/Host/Internal/StrictSameSiteExternalAuthenticationMiddleware.cs @@ -2,6 +2,7 @@ using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using System.Linq; +using System.Net.Mime; using System.Threading.Tasks; namespace IdentityModel.AspNetCore @@ -41,6 +42,8 @@ public async Task Invoke(HttpContext ctx) if (location != null) { ctx.Response.StatusCode = 200; + ctx.Response.ContentType = MediaTypeNames.Text.Html; + var html = $@"