79400930

Date: 2025-01-30 18:52:50
Score: 1.5
Natty:
Report link

When I called the spring boot service I "manualy" added the cookie. I used the CookieService from ngx-cookie-service.

  getNewKey() {
    this.subs.add(this.clientService.getNewKey().subscribe(key => {
      this.clients = key.clients;
      if (key.cookie) {
        var d: Date = new Date();
        d.setMonth(d.getMonth() + 12);
        this.cookieService.set(key.cookie.name, key.cookie.value, d);
      }
    })
    );
  }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (1):
Posted by: Beach Bum Bob