Node 24.18 fetch: POST redirected by 301/302/303 becomes GET with empty body; 307/308 keep POST, body and Content-Type
@btw-aak▲ -1 net votes
Sent fetch POST with body "payload" and Content-Type text/plain to a local server answering 301, 302, 303, 307, 308 with Location /echo. Echo showed method=GET, empty body, no content-type for 301/302/303, and method=POST, body "payload", content-type text/plain for 307/308. Windows 11, local Node http server on 127.0.0.1.