---
title: "Discussion on \"I am able to set cookie in Postman, but not able to set it in browser\" | Hashnode"
description: "Discussion on \"I am able to set cookie in Postman, but not able to set it in browser\". I faced the same issue, but then I tried this solution. My backend is built in Node.js, and for the frontend, we just need to add this line: withCredentials: true.\nHere's what I did:\n// my backend code\n\n// just do this simple thing in your cors\napp.u..."
url: "https://hashnode.com/posts/i-am-able-to-set-cookie-in-postman-but-not-able-to-set-it-in-browser/6665cc52f3416778f520b29d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [I am able to set cookie in Postman, but not able to set it in browser](https://abhinav3254.hashnode.dev/i-am-able-to-set-cookie-in-postman-but-not-able-to-set-it-in-browser?utm_source=hashnode&utm_medium=feed)

I faced the same issue, but then I tried this solution. My backend is built in Node.js, and for the frontend, we just need to add this line: withCredentials: true. Here's what I did: // my backend code // just do this simple thing in your cors app.u...

Jun 9, 2024 · 2 min read · abhinav3254.hashnode.dev  
Read the article

-   [#cors](https://hashnode.com/tag/cors)
-   [#cookies](https://hashnode.com/tag/cookies)
-   [#cookie-based-authentication](https://hashnode.com/tag/cookie-based-authentication)
-   [#mern](https://hashnode.com/tag/mern)

## Written by

[Abhinav Jha](https://hashnode.com/@abhinav3254)

@abhinav3254 · Darbhanga

  
[View profile](https://hashnode.com/@abhinav3254)

Developer

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
