
MU814642 (Community Member) asked a question.
We are using Asp.net MVC Application
$.ajax({
url: $.Site.RelativeWebRoot + 'MyData/Benchmarks/Update/',
type: 'POST',
contentType: 'application/json; charset=utf-8',
dataType: 'text',
data: value,
cache: false,
success: function (e) {
},
}); //ajax close
$.ajaxSetup({
beforeSend: function (xhr) {
xhr.setRequestHeader('X-CSRF-Token', getCSRFToken())
}
});
function getCSRFToken() {
return '@NonceHelper.GetCSRFToken()';
In the Controller action method, we validate the headers and proceed further.
Still, the veracode scan shows flaws.
kindly help us to fix this issue.
Thanks,
Mahesh
.png)
Hello
I would recommend you contact our technical support team.
Here's how you can log a case:
1. Navigate to the upper right corner of any page in the Community, and click on your user avatar.
2. Select Contact Support from the drop-down menu.Open a case with Support, for integrations and provide the steps you are taking to receive that error to better help assist the engineer.
Regards,
Pranita
Veracode Inc.