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 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

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

Portrait de rzr

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
Portrait de Marvin O

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,

Connectez-vous pour laisser un commentaire.