Skip to content

Commit 15aaf54

Browse files
committed
chore: update changelog and add media-src to CSP for video playback
1 parent 8803ffb commit 15aaf54

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2323

2424
### Fixed
2525
- **Chunked upload for large files** - Files over 100MB now upload reliably using chunked upload API
26+
- **Video preview playback** - Added `media-src` to Content Security Policy to allow video/audio playback
2627
- Prevented duplicate preview panels opening for the same asset
2728

2829
### Removed

src/webview/webviewUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ export function getCSP(webview: vscode.Webview, nonce: string): string {
7878
`style-src ${webview.cspSource} 'unsafe-inline'`,
7979
`script-src ${webview.cspSource} 'nonce-${nonce}'`,
8080
`img-src ${webview.cspSource} https: data:`,
81+
`media-src ${webview.cspSource} https:`,
8182
`font-src ${webview.cspSource}`,
8283
].join("; ");
8384
}

0 commit comments

Comments
 (0)