I
I
Ilya Vegner2018-12-17 21:44:34
JSON Web Token
Ilya Vegner, 2018-12-17 21:44:34

How to use cookies in vue js?

After authorization on the site, a cookie arrives from the banner, how can I parse this cookie in vue js and use ?
Tried vue-cookie but it only sees the cookies it created

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Михаил Коробков, 2018-12-17
@jKEeY

Скорее всего вам надо почитать про флаг httpOnly у кукисов.

Кирилл Романов, 2018-12-17
@Djaler

Точно также как и без Vue.
document.cookie

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question