Git Product home page Git Product logo

Comments (4)

jeremybphillips avatar jeremybphillips commented on August 15, 2024

@richardwlu I'm running into this also. Any luck figuring it out?

from simple-react-full-stack.

richardwlu avatar richardwlu commented on August 15, 2024

@jeremybphillips It ended up working for me. May have been from an update of dependencies? I haven't had time to determine yet. Here are my configs:

devServer: {
    port: 3000,
    hot: true,
    inline: true,
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        changeOrigin: true,
        secure: false,
        logLevel: 'debug',
      },
    }
  },
  "devDependencies": {
    "@babel/core": "^7.4.5",
    "@babel/plugin-proposal-class-properties": "^7.4.4",
    "@babel/preset-env": "^7.4.5",
    "@babel/preset-react": "^7.0.0",
    "babel-loader": "^8.0.6",
    "concurrently": "^4.1.0",
    "css-loader": "^3.0.0",
    "html-webpack-plugin": "^3.2.0",
    "nodemon": "^1.19.1",
    "style-loader": "^0.23.1",
    "webpack": "^4.35.0",
    "webpack-cli": "^3.3.5",
    "webpack-dev-server": "^3.7.2"
  },
  "dependencies": {
    "babel-polyfill": "^6.26.0",
    "clean-webpack-plugin": "^3.0.0",
    "cors": "^2.8.5",
    "express": "^4.17.1",
    "file-loader": "^4.0.0",
    "jsforce": "^1.9.1",
    "lodash": "^4.17.11",
    "node-cron": "^2.0.3",
    "react": "^16.8.6",
    "react-dom": "^16.8.6",
    "url-loader": "^2.0.1"
  }
}
 "engines": {
    "node": "11.10.1",
    "npm": "6.7.0"
  },

from simple-react-full-stack.

jeremybphillips avatar jeremybphillips commented on August 15, 2024

@richardwlu Thanks!
This seemed to work for me

proxy: {
"/api/": {
target: "http://[::1]:8080",
changeOrigin: true,
secure: false
}
}

from simple-react-full-stack.

xuliang2019 avatar xuliang2019 commented on August 15, 2024

proxy:{ '/v1/**': { target: 'http://localhost:8080', secure: false, changeOrigin: true } } works for me

from simple-react-full-stack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.