Hacker News new | ask | show | jobs
by notfed 2608 days ago
Cookies support URL path restrictions.
1 comments

That doesn't prevent unauthorized reading of the cookies. The only way to properly prevent it is using a different domain/subdomain.

https://developer.mozilla.org/en-US/docs/Web/API/document/co...