Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

mozSystem parameter for window.XMLHttpRequest on FirefoxOS #2318

Closed
colinfrei opened this issue Apr 7, 2013 · 10 comments
Closed

mozSystem parameter for window.XMLHttpRequest on FirefoxOS #2318

colinfrei opened this issue Apr 7, 2013 · 10 comments

Comments

@colinfrei
Copy link
Contributor

To be allowed to do Cross-Domain requests in FirefoxOS you need the permission, and window.XMLHttpRequest has to be passed a constructor parameter like this:

new window.XMLHttpRequest({mozSystem: true}); 

See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest()

I currently patch Angular in the creatHttpBackend function to get this working, would be nice to not have to do that.

@shuhaowu
Copy link

👍

4 similar comments
@vergilius
Copy link

+1

@paolooo
Copy link

paolooo commented Nov 7, 2013

+1

@gergoistvannagy
Copy link

+1

@mathroc
Copy link

mathroc commented Dec 14, 2013

+1

@colinfrei
Copy link
Contributor Author

A mozAnon parameter is necessary in Firefox OS as well in the meantime, so this should probably be a generic option to pass in parameters.

@lcamacho
Copy link

+1

@btford btford added this to the Backlog milestone Mar 27, 2014
amccausl added a commit to amccausl/angular.js that referenced this issue Jun 19, 2014
Previously, it was not possible to pass settings to the constructor of the XMLHttpRequest.  This
adds an optional config property `xhrConfig` to the $http constructor, allowing us to do so.  This
is required for use of the mozAnon and mozSystem options for FirefoxOS.
See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest() for details.

Closes angular#2318
amccausl added a commit to amccausl/angular.js that referenced this issue Jun 19, 2014
Previously, it was not possible to pass settings to the constructor of the XMLHttpRequest.  This
adds an optional config property `xhrConfig` to the $http constructor, allowing us to do so.  This
is required for use of the mozAnon and mozSystem options for FirefoxOS.
See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest() for details.

Closes angular#2318
sjurba added a commit to sjurba/angular.js that referenced this issue Jun 19, 2014
The `xhrFields` object is passed to the XMLHttpRequest constructor making it possible to set non-standard properties on the XMLHttpRequest object. With this functionality it is possible to set the `mozSystem` and `mozAnon` properties, which is required to use angular in a packaged Firefox OS app. See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest()

Closes angular#2318
sjurba added a commit to sjurba/angular.js that referenced this issue Jun 19, 2014
The `xhrFields` object is passed to the XMLHttpRequest constructor making it possible to set non-standard properties on the XMLHttpRequest object. With this functionality it is possible to set the `mozSystem` and `mozAnon` properties, which is required to use angular in a packaged Firefox OS app. See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest()

Closes angular#2318
sjurba added a commit to sjurba/angular.js that referenced this issue Jun 19, 2014
The `xhrFields` object is passed to the XMLHttpRequest constructor making it possible to set non-standard properties on the XMLHttpRequest object. It is also possible to set the object on `$http.defaults` to use it globally. With this functionality it is possible to set the `mozSystem` and `mozAnon` properties, which is required to use angular in a packaged Firefox OS app. See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest()

Closes angular#2318
sjurba added a commit to sjurba/angular.js that referenced this issue Jun 19, 2014
The `xhrFields` object is passed to the XMLHttpRequest constructor making it possible to set non-standard properties on the XMLHttpRequest object. It is also possible to set the object on `$http.defaults` to use it globally. With this functionality it is possible to set the `mozSystem` and `mozAnon` properties, which is required to use angular in a packaged Firefox OS app. See https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#XMLHttpRequest()

Closes angular#2318
@btford btford removed the gh: issue label Aug 20, 2014
@DaAwesomeP
Copy link

+1

1 similar comment
@frekele
Copy link

frekele commented Jun 8, 2015

+1

sjurba added a commit to sjurba/angular.js that referenced this issue Jun 13, 2015
sjurba added a commit to sjurba/angular.js that referenced this issue Jun 18, 2015
sjurba added a commit to sjurba/angular.js that referenced this issue Jun 18, 2015
sjurba added a commit to sjurba/angular.js that referenced this issue Jun 18, 2015
petebacondarwin pushed a commit that referenced this issue Sep 18, 2015
@DaAwesomeP
Copy link

Yay!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.