Skip to content

Commit 61d505f

Browse files
authored
Update packages/cli/src/controllers/binary-data.controller.ts
1 parent 678fe77 commit 61d505f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cli/src/controllers/binary-data.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class BinaryDataController {
4242
res.setHeader('Content-Type', mimeType);
4343

4444
// Sandbox html files when viewed in a browser
45-
if (mimeType === 'text/html' && action === 'view') {
45+
if (mimeType.includes('html') && action === 'view') {
4646
res.header('Content-Security-Policy', 'sandbox');
4747
}
4848
}

0 commit comments

Comments
 (0)