-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossible to ignore proxy path prefix #887
Comments
👍 Just ran into this too. @borNfreee Find a suitable workaround since you posted this? |
@borNfreee you may need use http-proxy with middleware like express.js or connect.js |
@borNfreee's question has been answered in: chimurai/http-proxy-middleware#31 (comment) |
Thanks @chimurai You are right |
I have the same problem, but I can't use the @chimurai's solution because I don't use the middleware. I use the webpack dev server. Would this be possible with just |
@mik01aj Good news for you perhaps, HPM is now being used by It is not push to npm yet, so you'll have to wait a bit... |
That's some very good news, thanks! |
Hi,
I need to proxy requests from
/api
to the root of other site:http://test.com
:/api/users
->http://test.com/users
/api/users/1
->http://test.com/users/1
But all my requests lead to
http://test.com/api/*
How to ignore
/api
prefix but not to ignore other path?When I use
ignorePath
settings all my requests lead tohttp://test.com
.Config:
The text was updated successfully, but these errors were encountered: