Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

145
Vistas
json server not working when uploading vue-cli app on netlify?

Console show this error in the picture below

picture

I am trying to solve cors error at vue.config.js but still not working

module.exports = {
  devServer: {
    proxy: 'http://localhost:3000',
  }
}

this Axios post API method

  methods: {
    // send data
    async signup() {
      if (this.name == "" || this.email == "" || this.password == "") {
        return true;
      } else {
        document.querySelector("button").setAttribute("type", "button");
        let result = await axios.post("http://localhost:3000/user", {
          name: this.name,
          email: this.email,
          password: this.password,
        });
    
        if (result.status == 201) {
          localStorage.setItem("user-information", JSON.stringify(result.data));
          this.$router.push({ name: "Home" });
        }
      }
    },
  },

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda