bailicangdu / node-elm

Backend system based on node.js + Mongodb. 基于 node.js + Mongodb 构建的后台系统
https://cangdu.org/elm/
GNU General Public License v2.0
12.31k stars 3.74k forks source link

设置cookie无效 #252

Open adminwj1 opened 2 years ago

adminwj1 commented 2 years ago

登录携带cookie无效怎么设置

bailicangdu commented 2 years ago

是没有带cookie还是带了cookie但是cookie错误了

adminwj1 commented 2 years ago

我axios设置不上cookie,浏览器报错

从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送

发件人: @.> 发送时间: 2021年10月26日 11:16 收件人: @.> 抄送: @.>; @.> 主题: Re: [bailicangdu/node-elm] 设置cookie无效 (Issue #252)

是没有带cookie还是带了cookie但是cookie错误了

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bailicangdu/node-elm/issues/252#issuecomment-951520817, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJVEZG6B4SZNMROIXDCKRC3UIYMR7ANCNFSM5GWT5OPQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

bailicangdu commented 2 years ago

报错信息发一下呢

adminwj1 commented 2 years ago

@.***

@. @.

看不到cookie头 从 Windows 版邮件https://go.microsoft.com/fwlink/?LinkId=550986发送

发件人: @.> 发送时间: 2021年10月27日 11:05 收件人: @.> 抄送: @.>; @.> 主题: Re: [bailicangdu/node-elm] 设置cookie无效 (Issue #252)

报错信息发一下呢

― You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/bailicangdu/node-elm/issues/252#issuecomment-952496122, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AJVEZG4UJHDIYKIL3GXBTT3UI5T6NANCNFSM5GWT5OPQ. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

1173688472 commented 2 years ago

你提交的时候需要在cookie里面携带上验证码就OK了,本人也是研究了好久在发现,注意跨域问题哈,谷歌浏览器回导致跨域带不上cookie @adminwj1