Heim  >  Fragen und Antworten  >  Hauptteil

javascript - express下跨域没有写入sessionId

用的sessionId管理用户登录,

然后现在的问题是:

在express项目里测试是可以写入cookie

但是vue-cli的前端项目里却不可以。(即localhost:8080端口的请求)

response headers里写入set-cookie(如图1,2)
但是cookie里空空如也(如图3)

黄舟黄舟2727 Tage vor443

Antworte allen(0)Ich werde antworten

Keine Antwort
  • StornierenAntwort