支持加密图片与视频的本机预览
This commit is contained in:
1 parent
87676ae983
commit
6b728a0996
10 files changed
+94
-7
No files matched your search
+1
-1
@@ -49,7 +49,7 @@ async function start() {
|
||||
url.pathname.endsWith('.wasm') ? 'application/wasm' : 'application/javascript'
|
||||
return new Response(bytes, { headers: {
|
||||
'Content-Type': type,
|
||||
'Content-Security-Policy': browserAsset ? policy : policy + "; media-src blob:; connect-src 'self' " + api + ' ' + websocket,
|
||||
'Content-Security-Policy': browserAsset ? policy : policy + "; img-src blob:; media-src blob:; connect-src 'self' " + api + ' ' + websocket,
|
||||
'X-Content-Type-Options': 'nosniff',
|
||||
} })
|
||||
} catch {
|
||||
|
||||
Reference in new issue
Block a user