Cross-Origin Request Blocked When Geting XML Data Using Ajax
I am developing hybrid app i want to make my app dynamic.so i have data url as xml format.but when i tried to get the data it is failed.so please help me to solve the problem. <
Solution 1:
You are getting xhttp.readyState==4
but not xhttp.status == 200
. The status returned by your ajax call is 0
. That's the main problem. Now there can be many reasons for this status. See here (HTTP status code 0 - what does this mean for fetch, or XMLHttpRequest?) .
Post a Comment for "Cross-Origin Request Blocked When Geting XML Data Using Ajax"