From 7ba6d9204c25dfc37e2c38b1c9acb7bcae4bd437 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damian=20B=C3=BCchel?= Date: Fri, 5 Feb 2021 16:26:40 +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 dd5e3c2c..3b6fc9b5 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}).");