Express, cookies are set on desktop but not on mobile device


I am trying to store a cookie using the code below. It works fine on loalhost and on my deployed site when viewing from my desktop browser – but when I try to access the deployed site on my mobile device (iphone) it does not save the cookie. Any help is greatly appreciated, thanks!

          return res.cookie("__session", authToken, {
            httpOnly: true,
            sameSite: "none",
            secure: true,
          })
          .send();

Source: React – Stack Overflow

November 27, 2021
Category : News
Tags: axios | cookies | express | firebase | reactjs

Leave a Reply

Your email address will not be published. Required fields are marked *

Sitemap | Terms | Privacy | Cookies | Advertising

Senior Software Developer

Creator of @LzoMedia I am a backend software developer based in London who likes beautiful code and has an adherence to standards & love's open-source.