I made an ajax call to get datas from the excel. All working fine, but in chrome i got the below error
No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin null is therefore not allowed access.
My AJAX
$(function () {
$.ajax({
type: "GET",
url: "Data.csv",--------> (excel file)
dataType: "text",
success: function(data) {
processData(data);
}
My excel file is in the same location where the html file is saved. it works fine in ie and firefox browser, but i am getting error in chrome. Searched for the solution, some guys suggested CORS request.But i dont know how to use that. Can any one tell me how to overcome this error using CORS with example
Thanks in advance