before putting data from user into an HTML page it must be first escaped using HTML entity encoding
import html html.escape(USER_UNPUT)
import django.utils.html as html html.escapejs(USER_INPUT)
in this section we will mention how to utilize the client side XSS defense mechanism
sending the following header with value 1 will activate browser
Content Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware.
14 days trial , No credit card upfront , Risk free