Describe the bug
When frontend and backend have deeper subdomains, we cannot set a cookie to a nested domain. Therefore we need to use the top domain for the cookie.
To Reproduce
Steps to reproduce the behavior:
Backend URL backend.ke.haski.app
Frontend URL ke.haski.app
Try to login.
Cookie does not get set with error of cross domain cookie in network tab
Describe the bug When frontend and backend have deeper subdomains, we cannot set a cookie to a nested domain. Therefore we need to use the top domain for the cookie.
To Reproduce Steps to reproduce the behavior:
Expected behavior Cookie is set correctly.