Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

140
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!