lightmy.day

HTTP headers

Location HTTP Header Meaning

Location gives the target URL for a redirect or newly created resource.

Meaning

The server is pointing the client to another URI.

Where it appears

Redirect responses and 201 Created responses commonly include it.

What to check

Check whether the URL is absolute or relative, whether redirects preserve method correctly, and whether open redirects are possible.

Example

Location: /login

References

Related HTTP status codes