2021-10-28

Cloudinary CORS in the new SDK (v2)

I am using the cloudinary service to display image in my react app by using the new beta of React SDK v2 to be used with TS. I am using the function as depicted in the doc but in return I have

ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 200

Here is my code:

const cld = new Cloudinary({
    cloud: {
        cloudName: "mycloudname",
    }
});
const myImage = cld.image("sample");

I am new in CORS usage so i am probably missing something, but in the new SDK I can't find anywhere where i am supposed to add a header to allow CORS.

Can someone help me?



from Recent Questions - Stack Overflow https://ift.tt/3bfgkYD
https://ift.tt/eA8V8J

No comments:

Post a Comment