var baseUrl = 'https://anythingAPI/;' $.ajax({ type: 'GET', url: baseUrl+ 'api/Customer/GetCustomerDetails', data: {}, success: function (result) { console.log('Result Returned.') } });
/Customer/GetCustomerDetails
<pre><httpProtocol> <customHeaders> <!-- Allow Web API to be called from a different domain. --> <add name="Access-Control-Allow-Origin" value="*" /> <add name="Access-Control-Allow-Methods" value="*" /> </customHeaders> </httpProtocol>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)