Hello,
I am having an odd problem on Windows whilst using any browser. When I make a request from my local machine to an external website with a JSON file. Apache receives an OPTIONS request rather than a GET despite GET being specified. After some research it looks like a cross site request issue however, most of the articles I found where old/ the bugs have been fixed. Has anyone any idea as to why this is happening and how it can be resolved.
Thanks
$.ajax({
type: 'GET',
url: http://mywebsite.com/getjsn.json,
dataType: "json",
cache: false,
success: function(data, textStatus, XMLHttpRequest) {
// do something.
},
error: function(XMLHttpRequest, textStatus, errorThrown) {
// deal with error.
},
complete: function(XMLHttpRequest, textStatus) {
// all done.
}
});
asdasd