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 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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: