0

I understand that client-side first party cookies refer to cookies created on the page being browsed using document.cookie. However, I'm having trouble understanding client-side third party cookies. Is this conceptually possible but not practically, as when I try to specify a different domain using the domain parameter with document.cookie, the browser doesn't save the cookie? Is my understanding correct?

1

1 Answer 1

1

Yes.

Third-party cookies can only be set by set-cookie HTTP response headers (or upon visits to the other site at which time they would be first-party cookies).

Client-side JS has no direct access to them, for reading or writing, via document.cookie or otherwise.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you very much! I had this question for a long time and now it's much clearer!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.