Cookie是否与图片请求一起发送? [英] Are cookies sent with image requests?

查看:1201
本文介绍了Cookie是否与图片请求一起发送?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有一个网站(例如foo.com)和在foo.com的主页上,有一个图像请求,其中src = bar.com ...,将bar.com域上的cookie发送到bar.com服务器?

If I have a site (e.g. foo.com) and on the home page of foo.com, there is a image request where the src=bar.com..., will the cookies on the bar.com domain be sent to the bar.com servers?

谢谢!

推荐答案

是。 HTTP不区分一种资源或另一种资源(图像vs html)。

Yes. HTTP doesn't distinguish between one kind of resource or another (image vs html).

这篇关于Cookie是否与图片请求一起发送?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆