add media proxy to worker-src

Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-11-21 11:21:45 -06:00
parent 8e508b921c
commit b29f49fefc
No known key found for this signature in database

View file

@ -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\'']],