Skip to content

Commit

Permalink
Remove JavaScript/CSS restriction from HTML Content View
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilkosek committed Jun 22, 2017
1 parent 65e1dec commit d4cf59d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/CustomViews.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class HtmlContentView extends CustomView {

getContent(): string {
// Return an HTML page which disables JavaScript in content by default
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>`;
return `<html><head></head><body>${this.htmlContent}</body></html>`;
}
}

Expand Down

0 comments on commit d4cf59d

Please sign in to comment.