user3264341
user3264341

Reputation: 117

How does the browser know which non-standard request headers to send?

My question is similar to the one asked here, but pertains specifically to non-standard request headers.

If my server is expecting non-standard request headers (like say X-Forwarded-For), how will the browser know it's supposed to send it?

Upvotes: 1

Views: 404

Answers (1)

vhthanh
vhthanh

Reputation: 228

X-Forwarded-For is added when the request come into a proxy server or load-balancer that hides the main server address behind that. Also some of those headers are required by some specific servers and the clients must send the data over headers, such as x-api-key or some other names which are defined at the servers.

Upvotes: 2

Related Questions