I have a question about the working of the Origin and Host HTTP headers.
I have an Ajax page "Page A" which will call the Ajax feed "Page B".
I saw that the request header of "Page B" from the Ajax call contains the headers:
Origin: http://example.com
Host: example.com
However, if I call the "Page B" directly, the request header will only contain the Host
header:
Host: example.com
Thus, I want to know what is the difference between the Origin
and Host
headers, and why they show up on non-direct calls?
Can Origin be prepended and passed to server?