Relative Content

Tag Archive for javascriptreactjshttp-proxy-middleware

Facing setupProxy issue in my react application

I’m facing an issue in my react application where I have created setupProxy.js file in that I have added multiple environment url (.development, .test) . Development port is running “http://localhost:8080 & test is running “/bizcomp.test.com”. When I run my app using test env (non-prod) its working properly but if I run my app using backend port (8080) path is not accepting. Please find below setupProxy.js & error screenshot.
Below is the api call which we use in frontend
http://localhost:8080/bizcomp/restservices/v1/service/seller/comptitle.