Prechádzať zdrojové kódy

added case w/o credentials

Former-commit-id: 9f105f5ad745d2380fd2c1e9daa11ac688c18159
Gildas 6 rokov pred
rodič
commit
0db3dcbc8c

+ 3 - 0
lib/fetch/content/content-fetch-resources.js

@@ -32,6 +32,9 @@ this.singlefile.lib.fetch.content.resources = this.singlefile.lib.fetch.content.
 			}
 			try {
 				let response = await fetch(url, { cache: "force-cache" });
+				if (response.status == 403) {
+					response = await fetch(url, { cache: "force-cache", referrerPolicy: options.referrerPolicy });
+				}
 				if (response.status == 403) {
 					response = await fetch(url, { credentials: "same-origin", cache: "force-cache", referrerPolicy: options.referrerPolicy });
 				}