J
J
Jesus_newrba2019-10-10 20:24:37
Node.js
Jesus_newrba, 2019-10-10 20:24:37

How to save cookies in Vuejs app?

There is a site api on a subdomain (api.domain) with implemented authorization (express mongodb express-session).
Cookies store the .domain domain so that there is access from www.domain and api.domain
How and through what to save or take cookies from api on the frontend (vue axios)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dima Pautov, 2019-10-10
@bootd

Are there any other ways to work with cookies in the browser other than document.cookie?
If you are asking for a library for convenience then https://github.com/js-cookie/js-cookie
Otherwise I didn't understand the question

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question