307 Temporary Redirect
Temporary redirect that keeps the method and body (POST stays POST).
Common causes
- Temporary redirect that keeps the method (POST stays POST)
- Browser-internal HSTS (Chrome shows 307 when upgrading to HTTPS)
How to fix
- Use 307 instead of 302 when the method and body must be kept
- For permanent moves, use 308
Detailed reference (MDN) ↗RFC 9110 §15.4.8 ↗
Which code should I use?
- 302 / 303 / 307: Temporary redirects. 302 may turn POST into GET; 303 always switches to GET (use after a form submit); 307 keeps the method.
