I have a react app where I upload images to imgur like:
const formData = new FormData();
formData.append('image', file);
return fetch('https://api.imgur.com/3/image/', {
method: 'POST',
headers: { Authorization: 'Client-ID xxxxxxxxxxxxx' },
body: formData,
})
I used to be able to upload images from my localhost, but now when I run the same code I get:
Access to fetch at 'https://api.imgur.com/3/image/' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
So does this mean imgur updated their CORS policy?