skip to Main Content

Veracode Scan: jQuery html method showing Improper Neutralization of Script-Related HTML Tags in a Web Page issue – Jquery ajax

Veracode is pointing out the issue Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in the below line. $('#SummaryDiv').html(data); $.ajax({ url: 'Target_URL', type: 'GET', datatype: "json", traditional: true, cache: false }).done(function (data) { $('#SummaryDiv').html(data); I am…

VIEW QUESTION

Send file to api using Ajax – Jquery ajax

Im trying to send file to api using ajax , but form-data always null in both cases mentioned below <form id="myformdoc"> <input type="file" size="45" name="file" id="file"> </form> <script> $('#file').on("change", function () { // var formdata = new FormData($('form').get(0)); let myForm…

VIEW QUESTION
Back To Top
Search