Skip to main content

Creating a Vue.js Application for Uploading Assets to Cloudinary



  • Issei Mendez

    How i can delete a image from vuejs?

  • Ismael

    Good morning. When executing the code I get an error in the console: "

    Access to XMLHttpRequest at '' from origin 'http://localhost:8080' has been blocked by CORS policy: Request header field operador is not allowed by Access-Control-Allow-Headers in preflight response."

    How can I fix it?

    Thank you very much!

  • Rebecca Peltz

    In order to update or delete an asset from Vue.js, you need to use a server and call the Upload or Admin API. I recommend the Upload API SDK destroy method: If you use Nuxt, you can deploy your own server API with your vue.js code and call it from Vue.js using an http client like fetch or axios. The reason you can do a fully front end destroy (or update) is because it requires credentials (key and secret) which you don't want to expose in the front end. The upload API allows you to use the unsigned preset and that's what makes uploading (create) possible.


Please sign in to leave a comment.