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
The following error is thrown when the above tries to execute:
Error: Can't set headers after they are sent.
This seems to work totally fine for GET requests, just not POST requests. Managed to hack around it at first by wrapping the .setHeader call in check to make sure proxyReq._header was null, but it looks like that totally fails when Firefox tries to perform a POST request (the header doesn't get set).
The same thing appears to happen when trying to do res.setHeader, as suggested by #819.