I am trying to upload blob in react js with resumable upload url in google cloud storage, but it keeps failing with the error "Request failed with status code 308" and "from origin 'http://localhost' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource."
// fileBlob is converted from canvas -> dataUrl(jpeg) -> blob
const headers = {
'Content-Type': 'image/jpeg',
};
const response = yield axios.put(resumable_upload_url, fileBlob, {headers});
Can anyone please point out what am I missing here, many thanks in advance !