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