CORS Error when fetching folders in browser
I'm trying to make a request to fetch the folders in my cloudinary account from my browser but I get this CORS error:
Access to fetch at 'https://api.cloudinary.com/v1_1/<cloudinary_name>/folders' from origin 'http://localhost:3002' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: It does not have HTTP ok status.
This is my code:
I have tried using the NodeJS SDK to make this request but it seems that does not work for me in the browser environment.
Is there anything else I can try?
Any help would be appreciated. Thanks
Post is closed for comments.