DEV Community

Adarsh Konchady
Adarsh Konchady

Posted on

Front end security - React

So you have built your site and it's now time to launch it to your users. What key things should you keep in mind from a front-end security point of view ? 

  • Use SSL
  • dangerouslySetInnerHTML (React) - Sanitize your inputs between client and server
  • Have proper checks, like cart total, both on client and server. 
  • While using forms with JS, make sure you use method="POST". Otherwise, on clients which don't support JS, all the fields with "name" will get transmitted in the URL on submitting the form. 
  • Make sure you are PCI compliant while processing payment information of your clients.

Credit - Syntax.fm podcast

Top comments (0)