# Okta login callback not sending cookies

**URL:** <https://devforum.okta.com/t/okta-login-callback-not-sending-cookies/26511>\
**Category:** OAuth/OIDC\
**Tags:** api, reactjs\
**Created:** [January 26, 2024, 11:27pm UTC](https://devforum.okta.com/t/okta-login-callback-not-sending-cookies/26511 "2024-01-26T23:27:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![crod\_93](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@crod\_93](https://devforum.okta.com/u/crod_93)\
**Post date:** [January 26, 2024, 11:27pm UTC](https://devforum.okta.com/t/okta-login-callback-not-sending-cookies/26511/1 "2024-01-26T23:27:58Z")

</div>

Hi I am using okta-auth-js to redirect a user when they are not logged in on pages. Locally everything works fine. When I deploy to a server env however, I start noticing issues. I noticed that my /login/callback route is not sending the cookies that are applied to it. Locally they are just not in the server env. This causes the user to have login each time, and then each time being logged because they are not authorized. Please help.

---

<div class="post-metadata">

**Author:** ![vk-giri](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/vk-giri/32/5178_2.png) [@vk-giri](https://devforum.okta.com/u/vk-giri)\
**Post date:** [January 29, 2024, 3:38pm UTC](https://devforum.okta.com/t/okta-login-callback-not-sending-cookies/26511/2 "2024-01-29T15:38:41Z")

</div>

Hi, can you check if something is blocking the cookies from the server side. Maybe it is a proxy doing that

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 28, 2024, 3:39pm UTC](https://devforum.okta.com/t/okta-login-callback-not-sending-cookies/26511/3 "2024-02-28T15:39:32Z")

</div>

Closed on February 28, 2024, 3:39pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
