制作跨域使用插件的Firefox的Ajax请求 [英] Making crossdomain ajax requests with addons for Firefox
问题描述
我有点困惑如何能或不能做的插件用于Firefox跨域Ajax请求。插件,例如LastPass的和Xmarks这个插件建议你可以做到这一点,但是当我试图谷歌,你是怎么做的,每个人都似乎在说你不能,除非用户设置了preference在Firefox的设置。如果跨域是不可能的,那怎么办的Xmarks,LastPass的和其它插件处理与他们各自的服务器通信?
I'm a bit confused about how you can or cannot make crossdomain ajax requests in addons for Firefox. Addons such as LastPass and Xmarks suggest you can do it, however when I try to google how you do it, everyone seem to say you cannot, unless the user has set a preference in the settings of Firefox. If crossdomain isn't possible, then how do Xmarks, LastPass and other addons handle the communication with theirs respective servers?
推荐答案
您最肯定可以跨域 XMLHtt prequest
S在Firefox插件。
You most definitely can make cross-domain XMLHttpRequest
s in Firefox add-ons.
有一个参考这里:<一href="https://developer.mozilla.org/en/Extension_Frequently_Asked_Questions#I_cannot_initiate_an_XMLHtt$p$pquest_from_my_extension" rel="nofollow">https://developer.mozilla.org/en/Extension_Frequently_Asked_Questions#I_cannot_initiate_an_XMLHtt$p$pquest_from_my_extension
这篇关于制作跨域使用插件的Firefox的Ajax请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!