AngularJS cookie access is too restrictive

It doesn’t allow setting expiration on cookies.