我有点困惑如何能或不能做的插件用于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.
有一个参考这里:https://developer.mozilla.org/en/Extension_Frequently_Asked_Questions#I_cannot_initiate_an_XMLHtt$p$pquest_from_my_extension