How it works...

As you can see, XSS attacks are widespread, and many websites suffer from this problem without knowing it. There are other injections attacks, such as SQL injections, that could happen in an API if we don't take minimal security precautions.

Get React Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.