cookie: remove redundant  localhost case