开发者

Do AJAX requests sent from the background page of Chrome Extension send a referrer?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜