Glad you chose cookies for this versus localstorage JWT tokens. Kudos for that.
Also note that the cookies should be http only and with the secure flag
For web browsers, cookie-based auth solves a ton of browser-specific problems that history has spent a long time building up answers for.