firefox-os

Firefox OS packaged apps and XMLHttpRequests

女生的网名这么多〃 提交于 2019-11-30 16:04:50
问题 I've been looking into packaged apps for Firefox OS and I'm relying on the Simulator since I don't have a build of the OS on a device. I'm having trouble with XHR requests and I'm not sure if the issue is a setting I'm overlooking or if the Simulator is just buggy. My reading of the documentation suggests adding permissions for network-http should be sufficient for making XHR requests to a web service. I have also seen in source code a systemXHR permission. I've tried both but so far no joy.

Firefox OS packaged apps and XMLHttpRequests

冷暖自知 提交于 2019-11-30 15:59:40
I've been looking into packaged apps for Firefox OS and I'm relying on the Simulator since I don't have a build of the OS on a device. I'm having trouble with XHR requests and I'm not sure if the issue is a setting I'm overlooking or if the Simulator is just buggy. My reading of the documentation suggests adding permissions for network-http should be sufficient for making XHR requests to a web service. I have also seen in source code a systemXHR permission. I've tried both but so far no joy. I'm using the simulator with Firefox for OS X and my manifest looks like so: Manifest: { "version": "0

How to debug javascript file on Firefox OS device

為{幸葍}努か 提交于 2019-11-28 02:31:44
问题 I want to edit a script file of Firefox OS device. But I do not know how ? When I use the console There's no option for editing . SO my question is how can I debug and edit the script file ? 回答1: For live debugging, you can run use the about:app-manager page inside the Firefox browser. You can install the ADB (Android Debug Brdige) to connect the FirefoxOS device with the Browser: // install ADB // Linux apt-get install android-tools-adb // OSX brew install android-platform-tools Then you can

Cross-Origin Request Blocked

大憨熊 提交于 2019-11-27 19:06:31
So I've got this Go http handler that stores some POST content into the datastore and retrieves some other info in response. On the back-end I use: func handleMessageQueue(w http.ResponseWriter, r *http.Request) { w.Header().Set("Access-Control-Allow-Origin", "*") if r.Method == "POST" { c := appengine.NewContext(r) body, _ := ioutil.ReadAll(r.Body) auth := string(body[:]) r.Body.Close() q := datastore.NewQuery("Message").Order("-Date") var msg []Message key, err := q.GetAll(c, &msg) if err != nil { c.Errorf("fetching msg: %v", err) return } w.Header().Set("Content-Type", "application/json")

Cross-Origin Request Blocked

99封情书 提交于 2019-11-26 22:46:06
问题 So I've got this Go http handler that stores some POST content into the datastore and retrieves some other info in response. On the back-end I use: func handleMessageQueue(w http.ResponseWriter, r *http.Request) { w.Header().Set("Access-Control-Allow-Origin", "*") if r.Method == "POST" { c := appengine.NewContext(r) body, _ := ioutil.ReadAll(r.Body) auth := string(body[:]) r.Body.Close() q := datastore.NewQuery("Message").Order("-Date") var msg []Message key, err := q.GetAll(c, &msg) if err !