We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678fe77 commit 61d505fCopy full SHA for 61d505f
packages/cli/src/controllers/binary-data.controller.ts
@@ -42,7 +42,7 @@ export class BinaryDataController {
42
res.setHeader('Content-Type', mimeType);
43
44
// Sandbox html files when viewed in a browser
45
- if (mimeType === 'text/html' && action === 'view') {
+ if (mimeType.includes('html') && action === 'view') {
46
res.header('Content-Security-Policy', 'sandbox');
47
}
48
0 commit comments