W
W
wufapexef2017-10-04 23:15:23
JavaScript
wufapexef, 2017-10-04 23:15:23

Why are cookies not set for the domain?

I use the library https://github.com/js-cookie/js-cookie
Example from the docs

Cookies.set('name', 'value', { domain: 'subdomain.site.com' })

For some reason it doesn't install.
If without a domain, then everything works.
Same thing with secure. Without it, it is set, but secure is not.
How to fix?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question