I'm currently attempting to perform an ajax
request through jquery
to fetch some data from a server. However, whenever calling $.ajax
, it brings up this error.
The weird thing is, whenever calling $.ajax
without any attributes, which should be valid, it still brings up the same error. I'm using the latest version of jquery, 3.1.1
, and not using the slim build.
Thanks in advance.
My Ajax:
$.ajax({
url: url,
method: 'GET',
mimeType: 'text/plain',
success: function(url, status) {
// on success
},
error: function(error, status) {
// on error
}
});