From 6a57c55c4ac7c490ff76889d69fbc7cd2f71b2c4 Mon Sep 17 00:00:00 2001 From: Steven Devooght Date: Sun, 23 Aug 2020 15:15:31 +0200 Subject: [PATCH] Set ContentType header --- .../Internal/StrictSameSiteExternalAuthenticationMiddleware.cs | 3 +++ 1 file changed, 3 insertions(+) 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 = $@"