# Http-only cookies

**URL:** <https://community.postman.com/t/http-only-cookies/35876>\
**Category:** Help Hub\
**Tags:** cookies\
**Created:** [June 2, 2022, 12:03pm UTC](https://community.postman.com/t/http-only-cookies/35876 "2022-06-02T12:03:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![altimetry-cosmologi9](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@altimetry-cosmologi9](https://community.postman.com/u/altimetry-cosmologi9)\
**Post date:** [June 2, 2022, 12:03pm UTC](https://community.postman.com/t/http-only-cookies/35876/1 "2022-06-02T12:03:19Z")

</div>

Hi  
I’m sending a request from postman to my rest API  
in the request header, I’m setting a cookie that holds an access token string and setting it as http-only

like this:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/2/e/2edd3f882c6f9162b7c8268953b426dbfb2be7f1.png)

however, when i send it and inspect the console view i can see the cookie value  
 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/8/7/879a24cb47e1f5f016b07d08d66e1ff5101cd00a.png)

Is this valid? cause from what I know when setting the http-only attribute only the server has access to the cookie content.

is this just because I’m using postman ?

thanks for the help

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [June 2, 2022, 4:20pm UTC](https://community.postman.com/t/http-only-cookies/35876/2 "2022-06-02T16:20:27Z")

</div>

Hi @altimetry-cosmologi9

From my (very limited) understanding, it looks right …

- _ **HttpOnly** _ - If present, the cookie won’t be accessible to the client-side scripts run on the page (for example, with `document.cookie` in JavaScript). **The cookie will only be added to the cookie header in requests that are made.** This field does not have an effect on Postman’s behavior.

> **[Using cookies | Postman Learning Center](https://learning.postman.com/docs/sending-requests/cookies/)**
>
> Using cookies: documentation for Postman, the collaboration platform for API development. Create better APIs—faster.

I could be wrong though as I don’t know that much about cookies. 🤷‍♂️
