3 ms·
You can use CORS in a packaged app to talk to your own web service http://en.wikipedia.org/wiki/Cross-origin_resource_sharing http://en.wikipedia.org/wiki/Cross
by kumar303 14y ago
You can use CORS in a packaged app to talk to your own web service http://en.wikipedia.org/wiki/Cross-origin_resource_sharing http://en.wikipedia.org/wiki/Cross-origin_resource_sharing or you need XHR permissions such as
"permissions": {
"systemXHR": {}
}
https://developer.mozilla.org/en-US/docs/Apps/App_permissions https://developer.mozilla.org/en-US/docs/Apps/App_permission...
Some info
- st3fan 14y agoYes, but you cannot load external scripts. Only content or XHR. I thought the OP was talking about loading code over the network.
- briansmith 14y agoThe way pnathan described his app, systemXHR doesn't seem to make sense for it. You usually only need systemXHR when you are writing an app that talks to a third-party server that you cannot control and that you cannot convince to enable CORS. systemXHR also has different handling of cookies and HTTP authentication credentials.