AJAX & CORS

AJAX & CORS

Hi all, I'm playing with the encapsulator 2 and the debugger. In my HTML5 app I query my server for giving something usefull to the user, but with the encapsulator 2.0 is no more possible. I had read this interesting article http://www.mobile-seo.de/archiv/517-english-intel-appuptm-encapsulator-2-0-xmlhttprequests-cors.html And I had enable cors support on my webserver (double checked the header) but the apps still not work when encapsulated. Any hint? Thanks a lot Michele
4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

Hi all, just found the solution thanks to the help of https://twitter.com/renehennig .

Just set this in your .htacces on your server, or via php or what you prefere:

Header set Access-Control-Allow-Headers: X-Requested-With,X-Request
Header set Access-Control-Allow-Origin *

Michele

let me connect to this tizen related thread :

http://appdeveloper.intel.com/en-us/forums/how-use-xmlhttprequest-local-file-and-prevent-origin-null-not-allowed-access-control-allow-or

http://www.reddit.com/user/rzrfreefr

Hello Michele,

Thank you for sharing the solution to the situation you were experiencing.

I’m sure this information would be of great assistance for developers interested in using the Intel AppUp(R) Encapsulator 2.0 Alpha for their programs.

Regards,

Leave a Comment

Please sign in to add a comment. Not a member? Join today