我正在使用,我需要設(shè)置一個 cookie。我正在使用,并且我正在嘗試這樣做,如下所示:angular 9ngx-cookie-service 3.0.4this.cookieService.set("cookieName", user.tokenId, date, "/", "localhost:4200");當我試圖拿出這個時,我在響應(yīng)中得到空,在瀏覽器中我沒有看到這個cookie。我試圖得到如下結(jié)果:console.log("COOKIE: ", this.cookieService.get("cookieName));我做錯了什么?
無法使用 ngx-cookie-service 設(shè)置 Cookie
富國滬深
2022-08-04 17:55:31