I'm using an advanced proxy in create-react-app which uses http-proxy-middleware. I'd like to pass through the domain and modify the port only for all requests.
I believe in create-react-app I must use the shorthand:
app.use(
'/api',
proxy({ target: 'http://www.example.org:8000' })
)
Is there a way I can pass through all requests to API so that the domain is unchanged but the port is 8000?