Skip to content

Commit

Permalink
add missing directive
Browse files Browse the repository at this point in the history
  • Loading branch information
gildas-lormeau committed Jul 27, 2021
1 parent 0742bc7 commit 4986beb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/single-file/single-file-core.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ class Processor {
if (this.options.insertMetaCSP) {
const metaTag = this.doc.createElement("meta");
metaTag.httpEquiv = "content-security-policy";
metaTag.content = "default-src 'none'; font-src 'self' data:; img-src 'self' data:; style-src 'unsafe-inline'; script-src 'unsafe-inline' data:;";
metaTag.content = "default-src 'none'; font-src 'self' data:; img-src 'self' data:; style-src 'unsafe-inline'; media-src 'self' data:; script-src 'unsafe-inline' data:;";
this.doc.head.appendChild(metaTag);
}
if (this.options.insertMetaNoIndex) {
Expand Down

0 comments on commit 4986beb

Please sign in to comment.