Why not put the cookies for the domain?

Using a library https://github.com/js-cookie/js-cookie

An example from docks

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


Is not put for some reason.
If no domain, then everything works.
Same with secure. Without it, is and secure there.

How to fix?
June 14th 19 at 20:01

Find more questions by tags HTTP CookiesJavaScript