码迷,mamicode.com
首页 > Web开发 > 详细

Nodejs:npm run build之后,dist\index.html页面在火狐中可以正常显示登录页面并登录成功,在Chrome中可以正常显示登录页面,登录失败

时间:2018-11-13 16:07:41      阅读:150      评论:0      收藏:0      [点我收藏+]

标签:解决   cookie   页面   tp服务器   detail   csdn   http服务   http   com   

问题描述:Nodejs:npm run build之后,dist\index.html页面在火狐中可以正常显示登录页面并登录成功,在Chrome中可以正常显示登录页面,登录失败

 

解决方法:将打包后的dist\index.html放到http服务器上运行就可以登录了。

 

总结:由于Chrome不支持本地静态cookie,所以导致在Chrome中set cookie的时候失败,导致没有走到正常的登录流程。

 

参考:    http://lhdst-163-com.iteye.com/blog/1245110
    http://polokang.iteye.com/blog/646722
    https://blog.csdn.net/wilesen/article/details/72823269
    https://blog.csdn.net/u014477038/article/details/52330047

Nodejs:npm run build之后,dist\index.html页面在火狐中可以正常显示登录页面并登录成功,在Chrome中可以正常显示登录页面,登录失败

标签:解决   cookie   页面   tp服务器   detail   csdn   http服务   http   com   

原文地址:https://www.cnblogs.com/zxxsteven/p/9952363.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!