Skip to content

Commit

Permalink
img request no-cors
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Sep 14, 2021
1 parent ad9603e commit f1c98c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/web-worker/worker-exec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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$) {
Expand Down

1 comment on commit f1c98c6

@vercel
Copy link

@vercel vercel bot commented on f1c98c6 Sep 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.