I have an ASP.NET Core Web API hosted on Azure with the link https://socialchainapi.azurewebsites.net/.
And NextJS app hosted on https://socialchain-client-api.vercel.app/ The problems:
I am trying to append cookies from the back-end as below - cookies options:
HttpOnly = true, Expires = refreshTokenExpiryDate, IsEssential = true,
Secure = true, SameSite = SameSiteMode.None,
Appending the cookies from an HttpPost
method :
Response.Cookies.Append("refreshToken", verifyResult.Value.User.RefreshToken, cookieOptionsRefreshToken);
Response.Cookies.Append("accessToken", verifyResult.Value.AccessToken, cookieOptionsAccessToken);
var verifyResponse = new VerifyResponse(verifyResult.Value.User.AccountAddress, verifyResult.Value.AccessToken);
return Ok(verifyResponse);
In the frontend (NextJS) I am receiving the cookies with no problem as below, but it is not set in the cookies storage.
Network response screenshot:
Console (no errors) screenshot:
Browser cookies storage screenshot: