Fix for cs.setcookie() on frontend