If the issue caused by the user authentication cookie, you need to set the auth cookie (every time the auth state is changed) in the server as well, if you are using Nextjs there an example repo, or just google it "Supabase auth serverside"
Or it might be the user does not have the permission to access..