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
I am using createProxyMiddleware({target: this.url, changeOrigin: true, ws: true, timeout: 6000000, secure: false});
Somewhere compression is happening inside middleware which is adding Transfer-Encoding header I guess. I am not explicitly adding any compression middleware on express app.
I tried removing header from onProxyRes but it didn't work.
onProxyRes : responseInterceptor( res.removeHeader('Content-Length'); OR delete proxyRes.headers['transfer-encoding']; OR res.removeHeader('Transfer-Encoding'); )
My target is getting partially loaded but with broken css and it keeps on retrying with same error for each request.
Example of request and response headers without proxying
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How to resolve this issue ?
onProxyRes : responseInterceptor( res.removeHeader('Content-Length'); OR delete proxyRes.headers['transfer-encoding']; OR res.removeHeader('Transfer-Encoding'); )
Beta Was this translation helpful? Give feedback.
All reactions