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)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

AWS GenAI LIVE!

GenAI LIVE! is a dynamic live-streamed show exploring how AWS and our partners are helping organizations unlock real value with generative AI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️