Firefox OS packaged apps and XMLHttpRequests

前端 未结 4 1628
日久生厌
日久生厌 2021-01-03 09:25

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 reque

4条回答
  •  清歌不尽
    2021-01-03 09:52

    To enable CORS in my Firefox OS app, I had to enable systemXHR permission in the apps manifest.webapp file:

    "permissions": {
        "systemXHR" : {
          "description" : "Required to access remote api"
        }
    }
    

提交回复
热议问题