SEBWIN-588: Attempt to fix missing BEK and CK headers after e.g. authentication redirection.

This commit is contained in:
Damian Büchel 2023-05-02 17:35:52 +02:00
parent e33a12e7ec
commit 989d414152

View file

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