I have this code
$.ajax({
url: sServiceURL + 'submitData',
type: 'GET',
data: JSON.stringify(selectedData),
contentType: 'application/json;charset=utf-8'
}).done(function (data) {
}).fail(function (status) {
})
As it is a get request, so I entered the same URL on in the browser and when I hit enter, I am getting correct response. But when I try using jquery, the request fails and error response contains: Error: Access is denied