用于跨站点脚本测试的浏览器(用于测试 Mozilla 附加组件)
我正在开发一个 Firefox 扩展,该扩展将涉及对域的 ajax 调用,这些域通常会由于 Firefox(和大多数现代浏览器)设置的同源策略而失败。
我想知道是否有一种方法可以关闭同源限制(也许在 about:config 中),或者是否有一个标准的精简版浏览器供开发人员使用。
如果可能的话,我真的想避免使用任何黑帽工具。并不是因为我反对他们,我只是不想在这个过程中增加另一个学习曲线。
我可以在 PHP 中使用 curl 来确认请求是否有效,但我想开始编写插件实际使用的 js,因此我需要一个能够执行 js 的客户端。
我也尝试过spidermonkey,但是由于我使用jquery 执行ajax,所以它对所有基于浏览器的默认变量都产生了影响。
那么,简短的版本:是否有一个可靠的跨站点脚本浏览器/客户端主要不是黑客应用程序?或者我可以在 Firefox 中关闭同域策略吗?
I am working on a Firefox extension that will involve ajax calls to domains that would normally fail due to the same-origin policy set by Firefox (and most modern browsers).
I was wondering if there is a way to either turn off the same-origin restriction (in about:config, perhaps) or if there was a standard lite-browser that developers turn to for this.
I really would like to avoid using any blackhat tools, if possible. Not because I'm against them, I just don't want to add another learning curve to the process.
I can use curl in PHP to confirm that the requests work, but I want to get started on writing the js that the addon will actually use, so I need a client that will execute js.
I also tried spidermonkey, but since I'm doing the ajax with jquery, it threw a fit at all of the browser-based default variables.
So, short version: is there a reliable browser/client for cross site scripting that isn't primarily a hacker app? Or can I just turn off same-domain policy in Firefox?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
将 GreaseMonkey 与 GM_xmlhttpRequest
Use GreaseMonkey with GM_xmlhttpRequest
您是否研究过 HTTP 访问控制
Did you look into HTTP Access Control