Skip to main content

'Access-Control-Allow-Origin' header is present on the requested resource.



  • Aleksandar Kostadinov


    Thanks for sharing the code and error you are receiving. I see that the URL endpoint for upload that you are using is not correct. Notice it has vi_1 which should be v1_1. May I please ask you to update that?

    In addition, you can remove a few of the parameters and headers you are currently sending as they are not needed. Specifically:

    1. Remove the 'Access-Control-Allow-Origin' header from your config - this header is something Cloudinary returns and is not needed as part of the request.
    2. Remove the 'cloud_name' from the FormData - this is not needed because it's already part of the upload API endpoint.

    Please let me know if the uploads work after making the above changes.

  • Akash Dubey

    this is still not working 

  • Aleksandar Kostadinov

    Hi @Akash,

    May I please ask you to provide more information about the issue you're seeing, including the exact error message and code you are using to upload?

    If you'd like to submit this information to us directly (not here in the forums) then please create a ticket by sharing the above details using the following form -

    Looking forward to your response


Post is closed for comments.