Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ var r = reqwest({
* `error` A function called when the request fails.
* `complete` A function called whether the request is a success or failure. Always called when complete.
* `jsonpCallback` Specify the callback function name for a `JSONP` request. This value will be used instead of the random (but recommended) name automatically generated by reqwest.
* `mozSystem` If true, the same origin policy will not be enforced on the request. (Mozilla only. Required for FirefoxOS privileged apps)
*


Expand Down
2 changes: 1 addition & 1 deletion reqwest.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
throw new Error('Browser does not support cross-origin requests')
}
} else if (win[xmlHttpRequest]) {
return new XMLHttpRequest()
return new XMLHttpRequest({mozSystem: o['mozSystem']})
} else {
return new ActiveXObject('Microsoft.XMLHTTP')
}
Expand Down
2 changes: 1 addition & 1 deletion reqwest.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/reqwest.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
throw new Error('Browser does not support cross-origin requests')
}
} else if (win[xmlHttpRequest]) {
return new XMLHttpRequest()
return new XMLHttpRequest({mozSystem: o['mozSystem']})
} else {
return new ActiveXObject('Microsoft.XMLHTTP')
}
Expand Down