Reputation: 117
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
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