add media proxy to worker-src
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
8e508b921c
commit
b29f49fefc
1 changed files with 1 additions and 0 deletions
|
@ -50,6 +50,7 @@ export function generateCSP(hashedMap: Map<string, CSPHashed>, options: {
|
||||||
'\'wasm-unsafe-eval\'',
|
'\'wasm-unsafe-eval\'',
|
||||||
...scripts
|
...scripts
|
||||||
]],
|
]],
|
||||||
|
['worker-src', ['\'self\'', options.mediaProxy].filter(Boolean)],
|
||||||
['object-src', ['\'none\'']],
|
['object-src', ['\'none\'']],
|
||||||
['base-uri', ['\'self\'']],
|
['base-uri', ['\'self\'']],
|
||||||
['form-action', ['\'self\'']],
|
['form-action', ['\'self\'']],
|
||||||
|
|
Loading…
Reference in a new issue