A script which is inlined on a page has access to the containers cookies:
Document cookie: