cookies-next icon indicating copy to clipboard operation
cookies-next copied to clipboard

Cookies not being saved in Samsung internet browser

Open bymoe opened this issue 1 year ago • 0 comments

Hello,

We've an issue with Samsung browsers not storing cookies, The below image is from our Sentry proving that simply the cookies are not being stored. This is mostly for Samsung Internet browser. Screen Shot 2023-10-09 at 11 47 56 AM

I've stumbled upon couple answers (1 & 2) to this issue, they suggested to credentials: "same-origin" and withCredentials: true but I just cannot see this option? am I missing something?

No idea why a simple cookie not being saved. This is how I set the cookie (client-side)

setCookie(
          "utms",
          {
            utm_source: "bla bla bla"
          },
          {
            domain: ".mydomain.com",
            maxAge: 86400 * 360, // 1 year
          }
);

Thanks.

bymoe avatar Oct 09 '23 08:10 bymoe