Skip to content

Commit

Permalink
whitelist chromium built-in pdf viewer's origin, #312
Browse files Browse the repository at this point in the history
* prevents the following error to occur: Access to the "mainFrame" resource with "chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/index.html" URL has been forbidden
  • Loading branch information
vladimiry committed Nov 16, 2020
1 parent b5a672e commit f63aaa2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/electron-main/web-request/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export function initWebRequestListenersByAccount(
const allowedOrigins: readonly string[] = [
webClient.entryApiUrl,
webClient.entryUrl,
"chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai",
...(
BUILD_ENVIRONMENT === "development"
? ["devtools://devtools"]
Expand Down

0 comments on commit f63aaa2

Please sign in to comment.