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 fc5e82d commit 4d2d3c6Copy full SHA for 4d2d3c6
src/features/CustomViews.ts
@@ -179,7 +179,7 @@ class HtmlContentView extends CustomView {
179
180
getContent(): string {
181
// Return an HTML page which disables JavaScript in content by default
182
- return `<html><head></head><body>${this.htmlContent}</body></html>`;
+ return `<html><head><meta http-equiv="Content-Security-Policy" content="default-src 'none'; img-src *; style-src 'self'; script-src 'none';"></head><body>${this.htmlContent}</body></html>`;
183
}
184
185
0 commit comments