IIRC you do have to mark them as edge functions, then they should be built into Pages Functions auto
IIRC you do have to mark them as edge functions, then they should be built into Pages Functions automatically


(Reason: CORS preflight response did not succeed). Status code: 500.This indicates the issue is not with the headers, but rather the fact that the request is returning 500 instead of 200. Most likely a 500 in this context means the Worker thew an exception, check the log for that error to see why: https://developers.cloudflare.com/workers/observability/logging/
no-transform on the request, it still doesn't work..walshy@

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <ur>. (Reason: CORS preflight response did not succeed). Status code: 500. 2no-transformreturn new Response(JSON.stringify({ url: uploadUrl }), {
status: 200,
statusText: 'OK',
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Methods": "GET,HEAD,POST,OPTIONS",
"Access-Control-Max-Age": "86400",
"Access-Control-Allow-Headers": "Content-Type"
}
});