single-file-core 1.0.21 → 1.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/single-file-core.js +5 -1
package/package.json
CHANGED
package/single-file-core.js
CHANGED
|
@@ -502,7 +502,7 @@ class Processor {
|
|
|
502
502
|
if (this.options.insertMetaCSP) {
|
|
503
503
|
const metaTag = this.doc.createElement("meta");
|
|
504
504
|
metaTag.httpEquiv = "content-security-policy";
|
|
505
|
-
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:;";
|
|
505
|
+
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:; object-src 'self' data:;";
|
|
506
506
|
this.doc.head.appendChild(metaTag);
|
|
507
507
|
}
|
|
508
508
|
if (this.options.insertMetaNoIndex) {
|
|
@@ -1854,6 +1854,10 @@ class ProcessorHelper {
|
|
|
1854
1854
|
if (testValidURL(resourceURL)) {
|
|
1855
1855
|
let { content, indexResource, duplicate } = await batchRequest.addURL(resourceURL,
|
|
1856
1856
|
{ asBinary: true, expectedType, groupDuplicates: options.groupDuplicateImages && resourceElement.tagName == "IMG" && attributeName == "src" });
|
|
1857
|
+
if (resourceURL.includes("openbenchmarking.org/embed.php")) {
|
|
1858
|
+
debugger
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1857
1861
|
if (originURL) {
|
|
1858
1862
|
if (content == util.EMPTY_RESOURCE) {
|
|
1859
1863
|
try {
|