I am using express-http-proxy to proxy requests to a Next application. The issue is, that express-http-proxy is modifying response header "content-type" that is being set by the Next server and adding a "charset=utf-8" by default. Is there any way to prevent this behavior and pass specific response headers as it is to the client without modifications? It is breaking Next's SPA behavior.
I think This file is causing behavior particularly this line:
res.set(item, rsp.headers[item]);
Express is setting the charset by default as it seems.
I am using express-http-proxy to proxy requests to a Next application. The issue is, that express-http-proxy is modifying response header "content-type" that is being set by the Next server and adding a "charset=utf-8" by default. Is there any way to prevent this behavior and pass specific response headers as it is to the client without modifications? It is breaking Next's SPA behavior.
I think This file is causing behavior particularly this line:
res.set(item, rsp.headers[item]);
Express is setting the charset by default as it seems.