HTTP 307 · 3XX RFC 9110 §15.4.8 Cacheable: No (unless explicit) Retryable: Follow Location with same method

HTTP 307 Temporary Redirect: Root Causes & Production Fix Guide

HTTP 307 Temporary Redirect guarantees the HTTP method and request body remain unchanged when redirected. You will also see `307 Internal Redirect` in Chrome DevTools when HSTS upgrades HTTP to HTTPS locally.

Top Root Causes of HTTP 307

Nginx 307 Method-Preserving API Redirect

location = /api/v1/webhook {
    return 307 https://api.example.com/api/v2/webhook;
}

Verify with cURL

curl -i -sS -X POST -d '{"ping":true}' -H 'Content-Type: application/json' https://api.example.com/api/v1/webhook

Interactive Stack Diagnoser (HTTP 307)

Frequently Asked Questions

Why do I see 307 Internal Redirect in Chrome DevTools?

Your browser has an active Strict-Transport-Security (HSTS) policy for that domain and automatically upgraded an http:// request to https:// before sending it over the network.

Can CORS preflight requests follow a 307 redirect?

No. The Fetch specification forbids redirects on CORS preflight OPTIONS responses; answer OPTIONS with 204 directly on the target URL.

When should I choose 307 over 308?

Use 307 for temporary maintenance or canary routing, and 308 when the new API endpoint URL is permanent.

Related Status Guides & Header Tools