Opened 10 years ago
Closed 10 years ago
#13394 closed feature (notabug)
Add mozSystem for Firefox crossdomain request
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | git |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
To be able to do cross-domain request on Mozilla's software, you have to add "mozSystem: true" as a parameter of xhr request. See here :
I'm developping a few FirefoxOS apps and for now need to patch JQuery to use it.
It would be very usefull because a lot of future FirefoxOS app will need this to be able to communicate with external api.
Thanks !
Change History (2)
comment:1 Changed 10 years ago by
Owner: | set to mael.lavault@… |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | pending → closed |
Just use the xhrFields
option as described in the API documentation. If you want it applied for all your requests, use ajaxSetup
to boot.
$.ajaxSetup({ mozSystem: true });
Done :)
Version 0, edited 10 years ago
by
(next)
Note: See
TracTickets for help on using
tickets.
We wouldn't be able to turn this on by default, even on FirefoxOS. What mechanism are you proposing for jQuery to use in order to know this property needs to be set? Seems like it can just be done by the developer as a duck punch of the
xhr
property for now so we're not holding up progress.