Home > Back-end >  Can't access front-end project accessing the backend interface
Can't access front-end project accessing the backend interface

Time:09-24

Front end access back-end projects can't access:
The front-end request address: http://localhost:8000/api/dico-base/auth/login
The front-end configuration file:
Proxy: {
'/API/: {
//match all begin with/API/interface
Target: 'http://192.168.1.19:8085',
//the backend server address
ChangeOrigin: true,
PathRewrite: {
'/API/' :' ',
}//because of the interface of our project was not in front of the API so directly to remove
},
},
The backend address: http://192.168.1.19:8085/auth/login

CodePudding user response:

PathRewrite: {
'/API/' :'/',
}

To try this

CodePudding user response:

See if there is something wrong with the code, no problem didn't look at the back end service started
  • Related