Have you whitelisted the domain?
You wouldn’t be able to get programmatic access to the cookies without doing that first.