Closed palmagro closed 11 years ago
Hi all,
Im implementing a webapp for FirefoxOS and now im trying to test it in r2d2b2g but im having some troubles:
My app ask for Ajax jsonp request to a external server to get data, i.e:
$.ajax({ dataType: "jsonp", url: "http://externalurl.com" ... });
I tried to allow them through the manifest file, using:
"csp":"default-src *;script-src externalurl.com; options eval-script inline-script;"
and lot of combinations of csp configuration but no one works, it seems like a problem between the schemes app and http.
Which is the best way to allow this kind of request in a FireFox OS App?
Thank you very much.
Pedro
I think you may have filed this question in the wrong project. Check out https://developer.mozilla.org/en-US/apps or https://wiki.mozilla.org/B2G/Hacking for more help. Good luck!
Hi all,
Im implementing a webapp for FirefoxOS and now im trying to test it in r2d2b2g but im having some troubles:
My app ask for Ajax jsonp request to a external server to get data, i.e:
$.ajax({ dataType: "jsonp", url: "http://externalurl.com" ... });
I tried to allow them through the manifest file, using:
"csp":"default-src *;script-src externalurl.com; options eval-script inline-script;"
and lot of combinations of csp configuration but no one works, it seems like a problem between the schemes app and http.
Which is the best way to allow this kind of request in a FireFox OS App?
Thank you very much.
Pedro