Re:Twitter is being investigated over data collection in its...
by icebraining on Monday October 15, 2018 @08:23AM
(#18219092)
I'm guessing there are cookies on other domains that their JS is looking for?
Nah, the browser doesn't let you do that. This SO answer suggests it's to pass the Referrer header so that the destination site knows the user came from Twitter:
AFAICT this is purely to allow for the 'pseudo injection' of the third-party JS, presumably for tracking purposes...
Only question I'd have is why they can't read the cookie server-side instead, but I'm guessing there are cookies on other domains that their JS is looking for? Haven't done web stuff in a few years so I'm behind on CORS-ish pros/cons/knowledge.