In the past 3 days, my worker script started to receive “error code: 1021” as fetch response content recently.
In my worker script, I fetched some content from another website with cookies. It seems recently headers.get(“Set-Cookie”) no longer works as well?
const loginRequest = new Request(url, {
body: rq,
method: "POST",
redirect: "follow",
headers: {
"Content-Type": "application/x-www-form-urlencoded",
},
cf: {
apps: false,
mirage: false,
scrapeShield: false,
},
});
const resp = await fetch(loginRequest);
Preview build doesn’t have this issue. Only the production build has this issue.