You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can try the following configuration options and see if those will fix the redirect issues.
hostRewrite: rewrites the location hostname on (201/301/302/307/308) redirects.
autoRewrite: rewrites the location host/port on (201/301/302/307/308) redirects based on requested host/port. Default: false.
protocolRewrite: rewrites the location protocol on (201/301/302/307/308) redirects to 'http' or 'https'. Default: null.
And how is the redirect issue related to restreaming?
I want to proxy my POST request. What i get is 301 redirection instead of 307 whenever i am doing a post request.
Thats my webpack-dev-server config:
I used this solution to restream parsed body, but req.body in restream function is always undefined, no matter if its GET request or POST with data.
GET requests are working fine. They are all proxied well.
Any ideas?
The text was updated successfully, but these errors were encountered: