From 3b7410b83d0fba259f223fd99ba1f4d4ef739ff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Mon, 8 Feb 2021 18:10:20 +0100 Subject: [PATCH] SEBWIN-458: Fixed issue with rendering of PDFs when request filtering is enabled. --- SafeExamBrowser.Browser/Handlers/RequestHandler.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SafeExamBrowser.Browser/Handlers/RequestHandler.cs b/SafeExamBrowser.Browser/Handlers/RequestHandler.cs index 082c5929..015ff629 100644 --- a/SafeExamBrowser.Browser/Handlers/RequestHandler.cs +++ b/SafeExamBrowser.Browser/Handlers/RequestHandler.cs @@ -124,7 +124,8 @@ namespace SafeExamBrowser.Browser.Handlers { var result = filter.Process(new Request { Url = request.Url }); - if (result == FilterResult.Block) + // We apparently can't filter chrome extension requests, as this prevents the rendering of PDFs. + if (result == FilterResult.Block && !request.Url.StartsWith("chrome-extension://")) { block = true; logger.Info($"Blocked main request{(windowSettings.UrlPolicy.CanLog() ? $" for '{request.Url}'" : "")} ({request.ResourceType}, {request.TransitionType}).");