Cookie issue on frontend

Hello, I have hosted frontend (React vite app) and also backend Spring boot server. So I have 1 static website and 1 server hosted on render, I do not use custom domains just subdomains generated by The REST API’s work fine the only problem I have is on adding cookies on frontend. I think errors are about “samesite” attribute and also domain. This is my cookie setup:
ResponseCookie cookie = ResponseCookie.from(cookieName, value)

Hi Luka,

It sounds like this community post may be relevant to your use case:

Setting up a free custom domain might be your easiest solution.