Ashok Sri
Apr 15, 2021

My reponse header includes access token, refresh token and some other flags as a cookie set, but when i try to set cookies using setFromResponse method, it's just saving the first cookie only

My Reponse cookies

access_token_cookie=eyJ0eXAiOiJKV1QiLCJ; Expires=Sun, 04-Apr-2021 12:54:59 GMT; Max-Age=3154; HttpOnly; Path=/; SameSite=None, csrf_access_token=8ee44170; Expires=Sun, 04-Apr-2021 12:54:59 GMT; Max-Age=31540; Path=/; SameSite=None, refresh_token_cookie=eyJ0; Expires=Sun, 04-Apr-2021 12:54:59 GMT; Max-Age=31540; HttpOnly; Path=/token/refresh; SameSite=None, csrf_refresh_token=351ede70-ab4d-; Expires=Sun, 04-Apr-2021 12:54:59 GMT; Max-Age=3154; Path=/; SameSite=None, logged_in=true; Path=/; SameSite=None, session=eyJ1cmwiOiIMOMjyTd150Pj3L5v0; Path=/; SameSite=None

But in my application only first cookie is stored

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response