I found this answer on the Internet, hope it will help you.
Since 2020, Chrome add more annoying restricts to cross domain cookies settings, you must set cookies with SameSite to none, otherwise Chrome will refuse to send cookies. More, if you set SameSite, you must set secure.
2
Answers
I found this answer on the Internet, hope it will help you.
Since 2020, Chrome add more annoying restricts to cross domain cookies settings, you must set cookies with SameSite to none, otherwise Chrome will refuse to send cookies. More, if you set SameSite, you must set secure.
The issue is that you’re sending the
{ withCredentials: true }
object as the 2nd parameter toaxios.post()
. The signature for that function isTypically with a POST request you’ll want to send some data but if you really want to skip it, pass
undefined
as the 2nd parameterI highly recommend taking advantage of Axios’ ability to create customised instances with convenient defaults