Side navigation
#13394 closed feature (notabug)
Opened February 05, 2013 05:26PM UTC
Closed February 06, 2013 04:06AM UTC
Add mozSystem for Firefox crossdomain request
Reported by: | mael.lavault@mailz.org | Owned by: | mael.lavault@mailz.org |
---|---|---|---|
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 !
Attachments (0)
Change History (2)
Changed February 06, 2013 01:42AM UTC by comment:1
owner: | → mael.lavault@mailz.org |
---|---|
status: | new → pending |
Changed February 06, 2013 04:06AM UTC by comment:2
_comment0: | 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 :) → 1360123651088900 |
---|---|
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({ xhrFields: { mozSystem: true } });
Done :)
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.