Testing Route using Postman
Step 1: Enter the url in the postman ,”http://localhost:3000/set-cookie”. This will set the cookie username and value as “JhonDoe”.
Step 2: Hit the url “http://localhost:3000/view-cookies“. You will get the cookie value which was set in above step.
Response Process:
How to Set, View and Manipulate Cookies using ‘Response.cookie()’ and Postman ?
Cookies enable websites to store small pieces of information on a user’s device. It helps enhance user experience and enable various functionalities. In this article, we’ll explore a simple way to manipulate cookies using the ‘Response.cookie()’ function