0

I set a cookie with laravel and now I want to get that in vue.js? and I don't want to use or install any dependency! How to do that?

It would be highly appreciated if anyone can advise me!

No.The.Hi
  • 476
  • 3
  • 14

1 Answers1

0

document.cookie will give you string of your cookies, then you can parse string and get necessary cookie https://developer.mozilla.org/en-US/docs/Web/API/Document/cookie.

Beso Kakulia
  • 556
  • 4
  • 12