Avoid XSS and CSRF Attacks in JWT (React + Golang): A Tutorialby@nitoge
834 reads

Avoid XSS and CSRF Attacks in JWT (React + Golang): A Tutorial

tldt arrow
Read on Terminal Reader🖨️
JS🚫

Too Long; Didn't Read

There is 2 way to store JWT in frontend: a. Store it in localStorage b. Store it in Cookie For (a.), It is CSRF safe but is vulnerable to XSS. While (b.) It is XSS safe but is vulnerable for CSRF.

Company Mentioned

Mention Thumbnail
featured image - Avoid XSS and CSRF Attacks in JWT (React + Golang): A Tutorial
lengzuo HackerNoon profile picture

@nitoge

lengzuo

About @nitoge
LEARN MORE ABOUT @NITOGE'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa