``` Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <u

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. 2


return 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"
        }
      });


No idea why it isn't working
Was this page helpful?