Thursday, 15 January 2015

jquery - JavaScript issue (CSP warn) in Firefox OS simulator -



jquery - JavaScript issue (CSP warn) in Firefox OS simulator -

i testing area tweet tutorial application (you can find total source code next creating area tweet app link) on firefox os , encountering next issue: application phone call twitter api, not receive response, next warn/ error:

[javascript warning: "csp warn: directive script-src app://myapp1002.gaiamobile.org violated http://search.twitter.com/search.json?callback=twittercallback&q=test&_=1360318777176"]

what issue here? hint not receveing response api request or there else? tested application on both firefox , chrome browsers (on windows) , works fine.

i might add together tested firefox os boilerplate app , 1 seems work fine. difference see between these 2 web applications area tweet uses jquery, while boilerplate 1 not. 1 modification did original source code of area tweet load jquery libraries localhost (to comply mozilla packaging policy), not seem problem.

add manifest.webapp request network-http permission (this allow app disable same origin policy) , utilize reqular json request twitter (without callbackparameter).

javascript jquery twitter content-security-policy firefox-os

No comments:

Post a Comment