Cookie cannot read by deployed site

Hosted Site: siteUrl
issue facing: cookie is being set by the server on the browser but hosted application is unable to read it, although it runs well in local env.
The server set cookie with the following options ( { maxAge: 1800000, sameSite: ‘None’, secure: true } ).
In client side for reading i’ve already tried the following ways

Cookies.get('uid', { path: '/', sameSite: 'None', secure: true })
Cookies.get('uid')

none of the above approach works, although in local both way works, but i know the r recommended way is the second one to read the cookie.

help me to fix this issue.

Hi, @ayush22. I do not see that site setting any cookies:

$ curl --compressed -svo /dev/null --stderr - https://bookhavenislibrary.netlify.app/  | egrep '^<'
< HTTP/2 200
< accept-ranges: bytes
< age: 0
< cache-control: public,max-age=0,must-revalidate
< cache-status: "Netlify Edge"; fwd=miss
< content-type: text/html; charset=UTF-8
< date: Tue, 07 Jan 2025 17:23:51 GMT
< etag: "2aef442c018f0621a4097a72626253c1-ssl"
< server: Netlify
< strict-transport-security: max-age=31536000; includeSubDomains; preload
< x-nf-request-id: 01JH0WPM3D6TY0P5AYB16NTDC8
< content-length: 475
<

What steps do I need to take to see the cookie get set?

on signin server set the token into the browser via response object.
for signin you can use these dumy credentials:
email: helloworld@gmail.com
password: helloworld

It looks like the cookie is set by on a different domain which means your site’s client-side javascript will not be able to access it. This Stack Overflow post has more details: