Documentation / Tutorials / Awesome Enterprise

To prevent XSS attacks of the Forms

/ Awesome Enterprise / To prevent XSS attacks of the Forms

Add your forms html in the [html.trusted] shortcode.

add the “data-safe_id='[app.safe_id /]’” attribute to your all form elements scripts and form tag itself.

 

Sample:

 

Also include the DOMPurify library in your awesome-js app.

sample can be found in DesignCafe dev site.

Categories
Most Popular

Leave a Reply

Your email address will not be published. Required fields are marked *