SEBWIN-588: Attempt to fix missing BEK and CK headers after e.g. authentication redirection.
This commit is contained in:
parent
e33a12e7ec
commit
989d414152
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue