浏览器扩展创建独立的cookie存储比规范窄 [英] Browser extension to create independent cookie stores narrower than spec

查看:275
本文介绍了浏览器扩展创建独立的cookie存储比规范窄的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道一个浏览器扩展(最好是Firefox),允许你以比规范更精细(可配置)的粒度创建独立的cookie存储。

Does anyone know of a browser extension (preferably Firefox) that allows you to create independent cookie stores at a finer (and configurable) granularity than the specification?

http://a.example.com/ 首先发送

Set-Cookie: a=bar; expires=Fri, 31-Dec-2010 23:59:59 GMT; path=/; domain=.example.com

很清楚,这也会被Firefox发送, a href =http://b.example.com/ =nofollow noreferrer> http://b.example.com/ 。我想要扩展名不是发送b.example.com的标头。通常,这会导致b.example.com发送不同的set-cookie标头,然后只会为b.example.com重新发送。这个想法是在同一网站上创建多个独立的会话。

So clearly this would also be sent by Firefox for anything subsequently requested under http://b.example.com/ . I want the extension to not send the header for b.example.com. Typically, this will cause b.example.com to send a different set-cookie header, which would then be resent only for b.example.com. The idea is to create multiple independent sessions on the same site.

如果支持其他粒度方案(例如 http://example.com/a/ http://example.com/b/ )。

It would be an added bonus if it supported other granularity schemes (e.g. http://example.com/a/ is separate from http://example.com/b/).

这使我感到有点类似于应用程序边界执行器<

This strikes me as somewhat similar to Applications Boundaries Enforcer, but different and not within its scope (though I could be wrong).

最后,我知道这可以给你足够的绳子来吊死自己。

Finally, I'm aware that this could give you enough rope to hang yourself.

推荐答案

您可以使用Chrome的多个用户功能。

You can do something similar (multiple browser windows with different cookies and settings) with Chrome's multiple user feature.

这可能也适用于Firefox配置文件, -no-remote

This might be doable with Firefox profiles too, and -no-remote.

这篇关于浏览器扩展创建独立的cookie存储比规范窄的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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