SEBWIN-458: Fixed issue with rendering of PDFs when request filtering is enabled.
This commit is contained in:
parent
cb84fbd689
commit
3b7410b83d
1 changed files with 2 additions and 1 deletions
|
@ -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}).");
|
||||
|
|
Loading…
Reference in a new issue