I'm curious whether or not AJAX requests sent from the background page of my Chrome Extension will send referrer information开发者_开发技巧? Does anyone know?
Thanks in advance!
No it will not. Background pages do not redirect so there is no referrer to send. Just the origin.
I modified one of my own Chrome extensions to use jQuery's .ajax call. When the call goes out I see with fiddler that no referer information is included by default. One thing you could try though would be to explicitly set the referer value for your ajax request. If you come up with a code example (not sure how to do it myself) I can try that out for you.
精彩评论