在 Firefox 中修改 HTTP 响应标头
有谁知道 Firefox 扩展是否允许修改 HTTP 响应标头?例如,扩展程序可以删除 x-frame-options 标头以使页面加载到 iframe 中吗?
谢谢
Does anyone know if Firefox extensions are allowed to modify HTTP response headers? For example, can an extension remove the x-frame-options header to let the page load in an iframe?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
我认为用于修改标头的最佳 Firefox 插件是 TamperData :
https://addons .mozilla.org/en-US/firefox/addon/966/
I think the best firefox addon for modifying headers is TamperData :
https://addons.mozilla.org/en-US/firefox/addon/966/
S. Wong 是正确的。目前Modify Headers仅支持修改请求头。但是,我正在考虑在未来版本中支持响应标头。
S. Wong is correct. Modify Headers supports modification of request headers only at present. However, I am looking at supporting response headers for a future version.
已经晚了,但我发现了一些东西,我正在查看“脾气数据”扩展的代码,并且我能够将响应修改为:
it's late but i found some thing, i was going through code of "temper data" extention and i was able to modify the response as:
有一个修改响应插件仅限于内容类型,但应该适用于所有(大多数)其他类型。
There is a Modify Response addon that is limited to Content-Type, but should be adaptable to all (most) others.
安装适用于 Firefox 的 PourBico。
打开 PourBico 窗口。
重新加载 URL、修改标题、重新加载页面。
Install PourBico for Firefox.
Open PourBico window.
Reload URL, modify the header, reload page.