Bug Tracker

Opened 11 years ago

Closed 11 years ago

#13394 closed feature (notabug)

Add mozSystem for Firefox crossdomain request

Reported by: mael.lavault@… Owned by: mael.lavault@…
Priority: undecided Milestone: None
Component: unfiled Version: git
Keywords: Cc:
Blocked by: Blocking:



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 11 years ago by dmethvin

Owner: set to mael.lavault@…
Status: newpending

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.

comment:2 Changed 11 years ago by jaubourg

Resolution: notabug
Status: pendingclosed

Just use the xhrFields option as described in the API documentation. If you want it applied for all your requests, use ajaxSetup to boot.

  xhrFields: {
    mozSystem: true

Done :)

Last edited 11 years ago by jaubourg (previous) (diff)
Note: See TracTickets for help on using tickets.