Applying input validation and output encoding while software is written, in line with standards such as ASVS and SAFECo…