mirror of
https://github.com/alam00000/bentopdf.git
synced 2026-11-12 01:33:36 +01:00
fix(security): update script-src directive to include 'blob:'
This commit is contained in:
1 parent
7587a5f94a
commit
18cdfac8cd
2 files changed
+3
-2
No files matched your search
+2
-1
@@ -49,4 +49,5 @@ libreoffice-wasm-package
|
|||||||
bentopdf-*.tgz
|
bentopdf-*.tgz
|
||||||
|
|
||||||
# test
|
# test
|
||||||
dist-test
|
dist-test
|
||||||
|
test
|
||||||
@@ -55,7 +55,7 @@ const fontOrigins = uniq([ocrFontOrigin].filter(Boolean));
|
|||||||
|
|
||||||
const directives = [
|
const directives = [
|
||||||
`default-src 'self'`,
|
`default-src 'self'`,
|
||||||
`script-src 'self' 'wasm-unsafe-eval' 'unsafe-eval' ${scriptOrigins.join(' ')}`.trim(),
|
`script-src 'self' 'wasm-unsafe-eval' 'unsafe-eval' blob: ${scriptOrigins.join(' ')}`.trim(),
|
||||||
`worker-src 'self' blob:`,
|
`worker-src 'self' blob:`,
|
||||||
`style-src 'self' 'unsafe-inline' https://fonts.googleapis.com`,
|
`style-src 'self' 'unsafe-inline' https://fonts.googleapis.com`,
|
||||||
`img-src 'self' data: blob: https:`,
|
`img-src 'self' data: blob: https:`,
|
||||||
|
|||||||
Reference in new issue
Block a user