Why Is JQuery Ajax Get Returning A 404 Not Found Error Even While The File Exists On The Server?
When I access the following url via browser it works fine returning JSON data, http://azcvoices.com/topcompanies/wp-content/themes/topcompanies/get.php?p=33 When jquery does an aja
Solution 1:
Are you making the request from the same domain as the page is hosted on? If not, you might be running into a problem with Cross-Origin Resource Sharing.
To fix this, you might be able to add Access-Control-Allow-Origin: *
as a header.
Post a Comment for "Why Is JQuery Ajax Get Returning A 404 Not Found Error Even While The File Exists On The Server?"