Error :
Response to preflight request doesn\'t pass access control check: The \'Access-Control-Allow-Origin\' header contains multip
Please use JSONP for cross domain scripting.
Check below sample code:
$.ajax({
url: "http://example.com/" + $("#selector3").val(),
type: "GET",
dataType: 'jsonp', // Notice! JSONP <-- P (lowercase)
data: request,
processData: true,
data: {},
headers: {
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Headers": "origin, content-type, accept"
},
success: function(data) {
alert(data.Company_Id);
}
});