From f1c98c6df2e9d1b5c87d376c419ca0b2a6b81939 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Tue, 14 Sep 2021 10:08:59 -0500 Subject: [PATCH] img request no-cors --- src/lib/web-worker/worker-exec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/web-worker/worker-exec.ts b/src/lib/web-worker/worker-exec.ts index 9c803665..b97e040e 100644 --- a/src/lib/web-worker/worker-exec.ts +++ b/src/lib/web-worker/worker-exec.ts @@ -37,7 +37,7 @@ export const imageRequest = (elm: WorkerImageElement) => { const privateValues = elm[PrivateValues]; privateValues.c = false; - fetch(elm.src).then((rsp) => { + fetch(elm.src, { mode: 'no-cors' }).then((rsp) => { privateValues.c = true; if (rsp.ok) { if (privateValues.$onload$) {