DEV Community

Adarsh Konchady
Adarsh Konchady

Posted on

1

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)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →