I need to set the domain for a cookie in javascript.
I've tried doing it like this:
<script>
function checkCookieChange() {
Cookies.set('storelocationChange', 'true','/' ,'.testsite.co.uk', {expires: 7});
};
</script>
But it's not setting the domain. Any ideas what I'm doing wrong?