Cookies – Delicious and useful to store data

Cookies are necessary to store data on a website, e.g., a JWT to validate that the user is who he claims to be. Furthermore, we can store sensible data that are used for displaying information such as user information.

In my frontend, I’m using cookie-js to store and manage different kind of cookies. To deploy the frontend to production one has to configure the sameSite attribute of the cookie. Either using ’strict‘, ‚lax‘, or ’none‘. If one wants to use ’none‘, one has to set the secure attribute to true.

Share this content:

CATEGORIES:

Learnings

No responses yet

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert

Latest Comments