how to solve 401 (Unauthorized) exception while calling APi controller from Ajax call in data table in mvc
function QAReport() { $("#QaReport_values").dataTable({ "processing": true, "serverSide": false, "destroy": true, "iDisplayLength": 50, "order": [0, 'desc'], "ajax": { "url": '@AppConstants.ApiUrl' + 'ProductivityDashboard/ProductivityDashboardApi/QAReport', "type": 'GET', "data": {}, "dataType": 'json', "dataSrc": '' }, "columns": [ { "data": "DeveloperName" }, { "data": "ProjectName" }, { "data": "Goal" }, { "data": "UserStory" }, { "data": "DeployedDateTime" }, ], "language": { "emptyTable": "There are no data at present." }, "responsive": true }); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)