diff options
Diffstat (limited to 'src/patcher.ts')
-rw-r--r-- | src/patcher.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/patcher.ts b/src/patcher.ts index 4f724cb..eb607b9 100644 --- a/src/patcher.ts +++ b/src/patcher.ts @@ -111,7 +111,7 @@ electron.app.whenReady().then(() => { function patchCsp(headers: Record<string, string[]>, header: string) { if (header in headers) { let patchedHeader = headers[header][0]; - for (const directive of ["style-src", "connect-src", "img-src", "font-src"]) { + for (const directive of ["style-src", "connect-src", "img-src", "font-src", "media-src"]) { patchedHeader = patchedHeader.replace(new RegExp(`${directive}.+?;`), `${directive} * blob: data: 'unsafe-inline';`); } // TODO: Restrict this to only imported packages with fixed version. |