RESOLVED FIXED169420
XMLHttpRequest: request body dropped during redirects
https://bugs.webkit.org/show_bug.cgi?id=169420
Summary XMLHttpRequest: request body dropped during redirects
Anne van Kesteren
Reported 2017-03-09 10:10:52 PST
See https://github.com/w3c/web-platform-tests/pull/5070 (XMLHttpRequest/send-redirect-to-cors.htm in web-platform-tests) for tests.
Attachments
Alexey Proskuryakov
Comment 1 2017-03-13 09:51:55 PDT
This may need some vetting. I believe that WebKit behavior for each specific HTTP redirect response code has been looked at in the past, and is intentional.
Andrey Povazhnyi
Comment 2 2017-12-15 03:00:46 PST
Interestingly, Fetch API call doesn't just drop request body, but sets it to "{}" after redirect
Ahmad Saleem
Comment 3 2022-08-10 03:28:35 PDT
Safari Technical Preview 150 still fail few tests: https://wpt.fyi/results/xhr/send-redirect-to-cors.htm?label=master&label=experimental&aligned&view=subtest&q=send-redirect-to-cors cdumez@apple.com - you fixed quite a lot XHR related bugs recently (updated TP not released yet)? Is this fixed in those? I couldn't find any commit mentioning this test, which was recently committed. Thanks!
Radar WebKit Bug Importer
Comment 4 2022-08-10 10:53:04 PDT
Anne van Kesteren
Comment 5 2026-04-21 06:23:09 PDT
*** Bug 312580 has been marked as a duplicate of this bug. ***
Anne van Kesteren
Comment 6 2026-04-21 06:23:36 PDT
EWS
Comment 7 2026-04-27 06:40:10 PDT
Committed 312092@main (0ae02b1bfe4a): <https://commits.webkit.org/312092@main> Reviewed commits have been landed. Closing PR #62982 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.