add cookie for angular to use, fix favorites api create