From 989d414152c3feaeb42f22e0ebbc64daff45d98f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Tue, 2 May 2023 17:35:52 +0200 Subject: [PATCH] SEBWIN-588: Attempt to fix missing BEK and CK headers after e.g. authentication redirection. --- SafeExamBrowser.Browser/Handlers/ResourceHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SafeExamBrowser.Browser/Handlers/ResourceHandler.cs b/SafeExamBrowser.Browser/Handlers/ResourceHandler.cs index 2e2d7486..e92cdd02 100644 --- a/SafeExamBrowser.Browser/Handlers/ResourceHandler.cs +++ b/SafeExamBrowser.Browser/Handlers/ResourceHandler.cs @@ -128,7 +128,7 @@ namespace SafeExamBrowser.Browser.Handlers Uri.TryCreate(webBrowser.Address, UriKind.Absolute, out var pageUrl); Uri.TryCreate(request.Url, UriKind.Absolute, out var requestUrl); - if (pageUrl?.Host?.Equals(requestUrl?.Host) == true) + if (request.ResourceType == ResourceType.MainFrame || pageUrl?.Host?.Equals(requestUrl?.Host) == true) { var headers = new NameValueCollection(request.Headers);