jeudi 9 avril 2015

How to make an ajax request cross origin CORS

Ext JS 4.2.1

Chrome



I am trying first time to make an ajax request with CORS. But getting the below error in console and request fails.



Below is two fiddle (Sencha Fiddle, JS fiddle), Both have different error in console.



Sometime its gives Access-Control-Allow-Origin error



http://ift.tt/1JrtM6i


http://ift.tt/1Gs4WVi


Attachment 52143





Please help where I am missing the flow. You can try with different ajax URL.



Thanks in advance


Attached Images







How to make an ajax request cross origin CORS

Aucun commentaire:

Enregistrer un commentaire