Open markchoward7 opened 7 months ago
When setting no-cors like so:
const data = await domToPng(element.current, { fetch: { requestInit: { mode: "no-cors" }, }, });
Any image requests fail with Failed fetch, not 2xx response. However, looking at the network tab shows 200 responses for all image requests.
Failed fetch, not 2xx response
Sandbox: https://codesandbox.io/p/sandbox/modern-screenshot-forked-rhgctx?file=%2Findex.html%3A26%2C52
I also have the same problem,How to solve it?
facing same issue, How to solve it?
When setting no-cors like so:
Any image requests fail with
Failed fetch, not 2xx response
. However, looking at the network tab shows 200 responses for all image requests.Sandbox: https://codesandbox.io/p/sandbox/modern-screenshot-forked-rhgctx?file=%2Findex.html%3A26%2C52