我有一个在Express中签名的cookie,但是如果尝试在Angular中访问它,则会得到加密的cookie,而不是原始的/实际的cookie。 这是代码段
import { CookieService } from 'ngx-cookie-service';
constructor(private dataService: DataService, private cookie: CookieService) { }
ngOnInit() {
console.log(this.cookie.getAll()); //yeilds: Object {e: "s:mycookie.CK2r0zwfyF97TURg6TB9/AO7OAJ1kI76r0txe89aavo"}
}//i only needed the value: 'mycookie'